JC Brand
aebd98cf0a
Stop using font-awesome fonts to render icons
...
This commit just does the last 1% of work necessary to get rid of font-awesome fonts.
fixes #1004
fixes #2639
2022-09-28 15:11:46 +02:00
JC Brand
983d5ea09c
CSS: more tweaks to cut off vertical zalgo text
2022-09-28 12:53:35 +02:00
JC Brand
3720092c09
CSS fix: prevent zalgo text from going out of vertical bounds
...
(previous commit didn't work properly it seems)
2022-09-28 11:15:39 +02:00
JC Brand
36cb7a644e
CSS fix: prevent zalgo text from going out of vertical bounds
2022-09-28 11:01:36 +02:00
JC Brand
6293efd8ee
Avoid double wrapping with anchor tag and tweak unfurl CSS
...
to make it smaller on large screens.
2022-09-27 14:31:19 +02:00
JC Brand
5760379e0a
Only send out ping if we're actually authenticated
...
Fixes #2562
2022-09-20 15:01:55 +02:00
JC Brand
a4ee3085b7
MUC: Don't ping when we're not connected
...
Instead, wait for the `reconnection` event and then ping.
2022-09-20 15:01:51 +02:00
JC Brand
bd60861c1e
Don't import plugins' index.js
file from other plugins
...
Importing a plugin's `index.js` file from other plugins means that it's no
longer possible to remove that plugin by removing it from `src/converse.js`.
Instead, all plugins need to be imported in proper order from
`src/headless/headless.js` and `src/converse.js`.
Updates #3026
2022-09-20 14:48:20 +02:00
JC Brand
fbe86e5af8
Create an ElementView base modal and use it for all modals
...
Modals are now all web components and are opened by component name.
2022-09-16 10:33:47 +02:00
JC Brand
927add0707
Wrap requestUpdate
in an arrow function
...
Otherwise parameters from the event handler might be passed in to it,
causing potential weirdness.
2022-09-16 10:26:21 +02:00
JC Brand
8378ce739b
Remove unfurls for hyperlinks removed in a message correction
2022-09-12 10:05:54 +02:00
JC Brand
f9e6c3ff95
Fix groups auto-complete for add-contact modal
2022-09-12 09:28:37 +02:00
JC Brand
98ae55790d
Add a list
property to the converse-autocomplete
component
...
This can be used instead of the `getAutoCompleteList` function and
avoids unnecessary computation.
2022-09-10 15:20:05 +02:00
JC Brand
bb0ad432b2
Move add-contact modal to the rosterview plugin
2022-09-10 14:46:32 +02:00
JC Brand
55e3417df3
Move user settings modal to profile plugin
2022-09-10 14:37:01 +02:00
Keith Maika
92f71bafb2
Fix muc icons not working due to incorrect target element.
2022-09-08 11:21:53 +02:00
JC Brand
f1734dbb40
Bugfix. Trim whitespace after JID
2022-09-06 13:45:30 +02:00
JC Brand
0489e0f902
Remove unused function
2022-09-01 17:28:29 +02:00
JC Brand
0aa66fee99
CSS Fixes.
...
- Remove max height for MUC heading, otherwise subject text can get cut off
- Fix offset in mobile due to the background image
2022-08-27 16:40:13 +02:00
JC Brand
ed1099490c
Fix bug where auto-complete list would jump to top
2022-08-26 23:19:08 +02:00
JC Brand
a74bbd093f
Improve rendering of add-muc autocomplete suggestions
2022-08-26 22:58:46 +02:00
JC Brand
8ae4b6abd4
MUC: Set occupant ID from reflected message
2022-08-21 17:33:35 +02:00
JC Brand
ca3c8fc10b
Fixes #3007
...
Bugfix: Links in message become text when the message is edited
2022-08-20 11:12:59 +02:00
JC Brand
e8b9681a15
MAM: Always query for newest MAM messages after cached ones have been fetched
...
The `_converse.connection.restored` check ensured that 1:1 chats
manually opened after tab reload would never get their MAM messages
fetched 🤦
2022-08-17 13:53:31 +02:00
JC Brand
51516e38f6
Remove duplicate trigger of afterMessagesFetched
2022-08-17 13:38:57 +02:00
JC Brand
de72d6bae3
MUC: Move constants to separate file
2022-08-17 12:53:41 +02:00
JC Brand
0d9561e666
MUC: When closing, only send read marker if we were entered
...
When using RAI, it's possible to close a MUC without it being entered.
2022-08-17 12:49:44 +02:00
JC Brand
97be0bd8ac
Styling: Use zero-width space and maintain position of newline char
...
Fixes #2879
2022-08-15 15:56:15 +02:00
Debanjana Sarkar
7f99b24e28
Fix for #2870
2022-08-15 15:54:29 +02:00
Keith Maika
17e5804be7
Select the immediate body, not the one in fallback.
2022-08-13 10:00:40 +02:00
JC Brand
fd9e41a917
Fix failing test.
...
The fix from @joudinet was to call `this.items.create` on `DiscoEntity`,
however we still need to pass in the same `entity` model as before so that both
collections (`this.items` and `_converse.disco_entities`) have a
referene to the same model.
That way, when attributes like `.identities` are added on the entity,
it's available from both `this.items` and `_converse.disco_entities`.
2022-08-12 10:27:09 +02:00
Johan Oudinet
760f4f7dd1
Fix missing disco-items in session storage
...
This should fix #2925 .
2022-08-12 10:07:12 +02:00
JC Brand
5231262bda
Take from_real_jid
into account when determining sender
...
of MUC messages.
This is safer than simply checking nicknames when the XEP-0421 occupant-id is not
available.
2022-08-12 09:43:49 +02:00
JC Brand
34927b5b77
Use occupant_id
to get own occupant O(1) if available
2022-08-12 09:21:01 +02:00
JC Brand
7028286855
Restrict editing of MUC messages...
...
to ones with the same XEP-0421 occupant ID
2022-08-11 22:44:11 +02:00
JC Brand
342c75775b
Save the user's XEP-0421 occupant ID on the ChatRoom
2022-08-11 15:47:09 +02:00
JC Brand
f1cc8c85f4
Rename the stanza
TTL to stx
to avoid name clashes
2022-08-11 15:30:51 +02:00
JC Brand
c5588e3c49
MUC: Features are fetched in join
...
due to the `await this.refreshDiscoInfo()` call in `join`.
So should be safe to remove the check whether features were fetched.
2022-08-11 15:12:55 +02:00
JC Brand
3d19def3e7
Wait for emojis to be initialized before sending a message
2022-08-11 14:31:28 +02:00
JC Brand
53521c2236
Import utilty function directly and use optional chaining
2022-08-11 10:42:00 +02:00
JC Brand
22170450b4
Stop using zipObject
from lodash
2022-08-11 10:30:07 +02:00
JC Brand
f014db8b7a
Update nick
attr on ChatRoom when user nick changes
2022-08-11 10:23:16 +02:00
JC Brand
fe9345b7fc
MUC: only allow corrections with a matching sender occupant-id
...
Also, don't render messages from a sender with a different `occupant-id`
as a followup message.
2022-08-10 14:53:18 +02:00
JC Brand
d2bdce51e8
Add a tagged template literal function stanza
...
For creating XML stanzas from template literals.
2022-08-10 14:50:12 +02:00
JC Brand
5f6e70289b
Run npm update
to update headless deps
2022-08-09 11:06:44 +02:00
JC Brand
45e989f048
Move converse-oauth
to the community-plugins
repo
2022-08-09 10:42:33 +02:00
JC Brand
71d1383604
Move code that sets active
flag on session to initSession
...
It doesn't belong in the `converse-status` plugin and the event handler
doesn't get registered when all CSI-related timeouts are set to 0.
2022-07-25 11:59:25 +02:00
dependabot[bot]
06a2aac022
Bump dayjs from 1.11.1 to 1.11.3
...
Bumps [dayjs](https://github.com/iamkun/dayjs ) from 1.11.1 to 1.11.3.
- [Release notes](https://github.com/iamkun/dayjs/releases )
- [Changelog](https://github.com/iamkun/dayjs/blob/dev/CHANGELOG.md )
- [Commits](https://github.com/iamkun/dayjs/compare/v1.11.1...v1.11.3 )
---
updated-dependencies:
- dependency-name: dayjs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-19 15:35:30 +02:00
JC Brand
d8ea42a845
Add XEP-372 URI as data attribute to mention element
2022-07-19 11:59:55 +02:00
JC Brand
eb29d962f5
Bugfix. Don't try to look up occupant via MUC JID
...
Also set function as class method
2022-07-18 16:19:02 +02:00
JC Brand
605c02901a
Fix yet more tests
2022-07-14 21:17:32 +02:00
JC Brand
368bcf258f
Fix failing tests
2022-07-14 20:40:58 +02:00
JC Brand
07efd601da
Use the native crypto library for SHA-1
...
instead of the one from Strophe
2022-07-14 20:34:15 +02:00
JC Brand
4aab83c4af
Remove unused method
2022-07-14 08:47:39 +02:00
JC Brand
4d9c0d3f9a
Also check for body
2022-07-12 09:05:28 +02:00
JC Brand
5d3da20bd9
Remove/update old comments
2022-07-03 13:36:15 +02:00
JC Brand
a95c070c2b
Set autoprefixer version to fix compilation error
2022-06-22 14:05:03 +02:00
JC Brand
c14c2b3b59
Carbons: check for server support before enabling
2022-06-20 22:44:23 +02:00
JC Brand
25891ef0ee
findOccupant
: Don't fall back to nick/jid search...
...
if the occupant can't be found via XEP-0421 occupant id.
We cannot safely assume that an occupant found via nick/jid but without
the same occupant id is the same occupant.
2022-06-20 14:33:44 +02:00
JC Brand
ba7c6d7a50
Let HeadlinesHeading
use CustomElement
2022-06-19 13:03:06 +02:00
JC Brand
7e2dd55c16
Use api.elements.define
2022-06-19 12:12:09 +02:00
JC Brand
8dc8b1d564
Insert only the MUC JID when clicking an auto-complete suggestion
2022-06-12 10:25:41 +02:00
JC Brand
d2b4f2e0f6
MUC search: no need to first fetch the form
2022-06-12 09:59:50 +02:00
JC Brand
320f11f795
Use XMPP to search for MUCs via search.jabber.network
...
Also refactor AutoComplete somewhat to not compute `this._list` too
eagerly and to also pass the query string to `this._list`.
2022-06-11 23:43:43 +02:00
JC Brand
4237e5b3ae
Style the add-muc modal autocomplete
...
- Let it drop down to the bottom
- Add a border
- Let it scroll
2022-06-11 23:42:47 +02:00
JC Brand
8671afc4b1
Document converse-autocomplete and always add closing tag
...
Weird parsing issues happen when a closing tag is not present.
2022-06-11 23:42:47 +02:00
JC Brand
0316f073e0
Replace font icons with svg icons
2022-06-11 23:42:47 +02:00
JC Brand
1744dbc420
Move roomslist tests to the right plugin
2022-06-11 23:42:47 +02:00
JC Brand
eb8ebea920
Move bookmarks list tests into separate file
2022-06-11 23:42:47 +02:00
JC Brand
4c8bc187b2
Allow autofocus to be set on an autocomplete input
2022-06-01 22:04:43 +02:00
Sanskar Bajpai
1ad6de2dd6
AutoComplete: added converse-autocomplete
suggestion to group chat query
...
this commit introduces autocomplete feature to the muc-list group chat dialog,
previously there was only an input field which displayed hardcoded servers.
2022-05-24 17:31:24 +02:00
Sanskar Bajpai
795a9a7e3e
add-modal-test: replaced a mistyped jid
2022-05-24 17:04:38 +02:00
JC Brand
858a6051ac
Refactoring of the headlines plugins
...
- Move template to relevant plugin
- Turn ElementView into CustomElement
- Use the terminology "Headlines Feed" instead of "Headlines Box"
- Break the `converse-headlines` plugin up into multiple files
- Fix CSS styling for headlines feeds for the Dracula theme
2022-05-13 16:49:45 +02:00
eapo
52693bfc0b
Translated using Weblate (Hungarian)
...
Currently translated at 95.1% (494 of 519 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/hu/
2022-05-13 10:50:39 +02:00
HAMANO Tsukasa
79063b9993
Translated using Weblate (Japanese)
...
Currently translated at 100.0% (519 of 519 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ja/
2022-05-13 10:50:39 +02:00
HAMANO Tsukasa
22840f8a50
Translated using Weblate (Japanese)
...
Currently translated at 100.0% (519 of 519 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ja/
2022-05-13 10:50:39 +02:00
HAMANO Tsukasa
92f74b888b
Translated using Weblate (Japanese)
...
Currently translated at 100.0% (519 of 519 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ja/
2022-05-13 10:50:39 +02:00
Emmanuel Gil Peyrot
ac241e5ed1
Translated using Weblate (French)
...
Currently translated at 99.8% (519 of 520 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
2022-05-13 10:50:39 +02:00
JC Brand
6573d080e4
Message carbons
...
- Remove the `converse-carbons` plugin and make carbons part of the `converse-chat` plugin.
- Remove the `message_carbons` configuration setting. Carbons are now always enabled.
2022-05-13 10:32:54 +02:00
JC Brand
12a0d0e3cc
Show roster contacts with subscription
set to none
...
Remove the `allow_chat_pending_contacts` config option.
2022-05-13 10:19:52 +02:00
JC Brand
2a7bfd13b5
Add ability to specify group when adding contact
2022-05-13 10:18:22 +02:00
JC Brand
ab7e879261
Don't automatically convert OpenStreetMap URLs into geo:
URIs in sent messages
...
Updates #1850 and #2914
2022-05-13 10:14:31 +02:00
JC Brand
a57853156e
Use our own confirm
dialog consistently
2022-05-12 23:23:24 +02:00
JC Brand
a3c0f90476
Don't use browser's confirm
dialog when logging out
...
Refs https://github.com/conversejs/converse-desktop/issues/18
2022-05-11 09:13:17 +02:00
JC Brand
b5bcc05947
Create generatePreKeys
function
2022-05-08 23:37:47 +02:00
HAMANO Tsukasa
bd579d8613
remove unnecessary }
2022-05-08 22:46:57 +02:00
Eric
7e9861ba8f
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 100.0% (417 of 417 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hans/
2022-05-06 13:10:00 +02:00
Emmanuel Gil Peyrot
0c9fd691ac
Translated using Weblate (French)
...
Currently translated at 100.0% (417 of 417 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
2022-05-06 13:09:39 +02:00
JC Brand
984386aa64
Bugfix. Add missing translations
...
Some translations were erroneously removed due to the nodeps build
contained string literals.
2022-05-06 13:02:03 +02:00
JC Brand
ae2bd63d8f
Release 9.1.1
2022-05-05 21:33:31 +02:00
Иван Иванович
5e27e27845
Translated using Weblate (Russian)
...
Currently translated at 96.5% (501 of 519 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ru/
2022-05-05 20:57:59 +02:00
Yoandry González Castro
ca9d68b99e
Translated using Weblate (Spanish)
...
Currently translated at 90.5% (470 of 519 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/es/
2022-05-05 20:57:59 +02:00
JC Brand
99c5d7a760
Fix failing test
2022-05-05 07:57:33 +02:00
JC Brand
f929f8b7f9
Bugfix. Chunks not loading when using converse.js build
...
(Although they do load when using converse.min.js)
I wasn't able to figure out why exactly, but setting `mode` to
`production` for the `converse.js` build solved the issue.
2022-05-04 21:54:51 +02:00
Eric
dbc0028880
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 100.0% (519 of 519 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hans/
2022-05-02 09:48:25 +02:00
Oğuz Ersen
f27238b76f
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (519 of 519 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/tr/
2022-05-02 09:48:25 +02:00
Xosé M
5adc39ebac
Translated using Weblate (Galician)
...
Currently translated at 100.0% (519 of 519 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/
2022-05-02 09:48:25 +02:00
nautilusx
53ccc4948f
Translated using Weblate (German)
...
Currently translated at 100.0% (519 of 519 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
2022-05-02 09:48:25 +02:00
JC Brand
1f7fe4f48e
Upgrade to Strophe 1.5.0 and upgrade various other dependencies
...
Had to add `src/strophe-shims.js` as a webpack alias to the shims.js
file in Strophe because the usage of `require` to load Node.js packags
in shims.js is causing problems with Webpack 5.
Set postcss-clean to 1.2.0 to fix the build error `node.getIterator() is
not a function`
Upgrade to latest Webpack
2022-04-28 23:53:31 +02:00
JC Brand
55d02cb37b
Update headless package-lock.json
2022-04-26 21:09:16 +02:00