JC Brand
0e03640ebe
Fixes #2195
2020-09-10 10:17:13 +02:00
JC Brand
5d8e5468ba
Refactor converse-notifications to used parsed message attributes
...
instead of querying the stanza.
Also fixes a bug where typing notifications triggered an AttributeError
inside `shouldNotifyOfGroupMessage`
2020-09-10 10:10:59 +02:00
JC Brand
1873003624
Add new plugin converse-carbons
...
Fixes a bug whereby carbons weren't being enabled because the listener
for `afterResourceBinding` was registered before `converse.initialize`
was called,(which means it was removed as soon as `cleanup` was called
inside `converse.initialize`).
This shows that event `api.listen` API calls can/should only be called
inside the `initialize` method of a plugin (or at least once plugins
have been initialized).
2020-09-10 09:27:27 +02:00
JC Brand
2c042cc3fa
Fixes #2184 : Headless build relies on locale directory
...
Removed Jed from the headless build and instead let `__` call sprintf.
It's now up to downstream users for `@converse/headless` to decide
whether they want i18n support for the few translatable strings in that package
and to implement it themselves.
2020-09-10 08:55:38 +02:00
JC Brand
89d5c872b3
Don't mark messages as read when received in a hidden MUC
2020-09-09 16:23:53 +02:00
JC Brand
ffbab33a26
Create own occupant before setting connection_status
to ENTERED
...
This makes it possible to wait for the connection_status before trying
to call `getOwnOccupant` in plugins
2020-09-09 15:33:50 +02:00
JC Brand
b7654f1fc7
Move some View declarations out of the plugin initialize
method
...
Precursor to some refactoring planned
2020-09-09 15:02:40 +02:00
JC Brand
7c43d0435c
Refactor OMEMO.
...
- Add hooks to the stanza parsers so that plugins can do additional parsing.
- Change ChatBox instance methods to functions and use them for stanza parsing.
- Move encrypt and decrypt messages to `converse.env.omemo`
Apparently, when receving a 1:1 carbon message, a device was wrongly created
for the contact's device list, instead of our own.
2020-09-09 14:04:24 +02:00
Ariel Fuggini
fce337e352
New configuration setting: notify_nicknames_without_references
2020-09-09 13:11:45 +02:00
JC Brand
e705b038f8
Fixes #2124 Concord - toolbar icons are invisible in MUC
2020-09-09 12:48:49 +02:00
Xavi Ferrer
cc458e8d3b
use composedPath() instead as it is standarized and cross-browser suported
2020-09-07 15:51:34 +02:00
Xavi Ferrer
37662e8dc1
prevent dropdown from being closed after event retargeting when bubbling out of a shadowRoot
2020-09-07 15:51:34 +02:00
Christoph Scholz
6319f566dd
fix emojis in case use_system_emojis == false
2020-09-05 11:33:25 +02:00
JC Brand
0594c480ff
Only consider chat 'hidden' flag in relevant view modes
2020-09-04 13:13:07 +02:00
JC Brand
c3d8f12050
Make api.user.status
API methods async
...
So that `_converse.xmppstatus` is defined before trying to set the
status.
2020-09-04 13:13:07 +02:00
JC Brand
4e7b29e417
Make sure initialize
can be awaited...
...
before `converse.initialize` has been called
In the process, remove other "core" promises. There is no core or
community plugins code awaiting on them and since it's possible to
call `converse.initialize` twice, I'm not sure it makes sense to even have them.
Also removed unused error class IllegalMessage.
2020-09-03 17:07:44 +02:00
JC Brand
cb53c86711
Don't use date-separator
CSS class for the new messages indicator
2020-09-03 13:06:17 +02:00
JC Brand
c41bdac6c8
Some work on componentizing the minimized chats UI
2020-09-03 13:06:17 +02:00
JC Brand
d5c93eb024
Create converse-root
custom element
...
This element can be used to declaratively insert Converse into the DOM.
You can put `<converse-root>` into the DOM (e.g. by rendering it inside
a React component) before or afer Converse has loaded and/or has been
initialized.
2020-09-03 13:06:17 +02:00
JC Brand
00df8b45fd
Bugfix. Check for image extension if image_urls_regex fails
2020-09-02 21:14:50 +02:00
JC Brand
496b070d2a
If adding .png fallback fails, revert to original URL
2020-09-01 12:21:32 +02:00
JC Brand
ac31d41c85
Test string value for filter_url_query_params
2020-09-01 07:26:20 +02:00
Ariel Fuggini
3535d05ff5
Removes query params from urls as set in config
2020-09-01 07:12:52 +02:00
JC Brand
d83d0158e2
Properly test for show_images_inline
2020-08-31 21:02:07 +02:00
JC Brand
eb016a2aa4
try/catch clauses should contain as little code as possible
...
To avoid catching unrelated errors, which can mask other issues in the
code and make debugging more difficult
2020-08-31 20:56:43 +02:00
JC Brand
831a9fa224
Append .png
to failed image URLs without extensions
...
Otherwise Imgur URLs don't render
2020-08-31 20:43:54 +02:00
Ariel Fuggini
6adec9a8d2
adds option to whitelist image domains
2020-08-31 20:38:09 +02:00
Ariel Fuggini
f88960c561
Added tests and documentation
2020-08-31 17:13:24 +02:00
Ariel Fuggini
94af11d7e3
adds setting to set non-image-extension image urls
2020-08-31 17:13:24 +02:00
Christoph Scholz
4d9d391365
add CustomElement to env
2020-08-31 17:03:23 +02:00
JC Brand
9348ac80b5
Override isHidden
in converse-minimize
...
Otherwise `isHidden` might return true because `minimized` is set to
`true` but `converse-minimize` is not enabled.
2020-08-28 15:32:58 +02:00
Ariel Fuggini
ce2827a342
Close modal on backdrop click
2020-08-28 08:53:03 +02:00
Christoph Scholz
823134d762
add html to converse.env
2020-08-24 23:48:24 +02:00
Xavi Ferrer
fa3a825549
add changes introduced
2020-08-24 11:46:24 +02:00
Xavi Ferrer
d50151c9dd
fix BOSH session restore
2020-08-24 11:46:24 +02:00
JC Brand
8c799efc58
Don't minimize chats by clicking the header
...
This prevents the burger menu from opening
2020-08-24 11:28:48 +02:00
JC Brand
9f0dfcdbdb
Wait before firing roomsAutoJoined
event
2020-08-24 11:05:51 +02:00
JC Brand
f7ef334fac
Rename method to better describe what it does
2020-08-18 21:09:39 +02:00
JC Brand
7cbb1b23b2
When opening a dropdown, don't prevent other dropdowns from closing
2020-08-18 15:09:37 +02:00
JC Brand
f5aaaa8712
CSS: Make only the image clickable
2020-08-18 15:03:28 +02:00
JC Brand
372da2107a
Bugfix. Pass event to handler
2020-08-17 21:30:54 +02:00
JC Brand
d44875e138
Translated using Weblate (Afrikaans)
...
Currently translated at 99.2% (497 of 501 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/af/
2020-08-17 09:18:16 +02:00
JC Brand
cb2759a653
Regenerate pot and po files
...
Also fix i18n typo in src/converse-omemo.js
2020-08-17 09:03:44 +02:00
JC Brand
306b9fdd71
Updates #2193
...
Also remove top-level i18n declarations in components
2020-08-17 09:00:53 +02:00
JC Brand
11cd6b8321
Fixes #2193 .
...
Translations called at the top of template files don't apply, since the
trnaslations aren't yet fetched at that point.
2020-08-16 23:45:53 +02:00
JC Brand
3e8b3f73bd
Move pot and po files to src/i18n and regenerate
2020-08-16 22:54:45 +02:00
Weblate (bot)
f51d281dc0
Translations update from Weblate ( #2192 )
...
* Translated using Weblate (Afrikaans)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/af/
* Translated using Weblate (Chinese (Simplified))
Currently translated at 68.5% (321 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hans/
* Translated using Weblate (Afrikaans)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/af/
* Translated using Weblate (Catalan)
Currently translated at 17.0% (80 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ca/
* Translated using Weblate (German)
Currently translated at 96.3% (451 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
* Translated using Weblate (Spanish)
Currently translated at 94.0% (440 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/es/
* Translated using Weblate (Hebrew)
Currently translated at 82.0% (384 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/he/
* Translated using Weblate (Norwegian Bokmål)
Currently translated at 63.4% (297 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/nb_NO/
* Translated using Weblate (Chinese (Simplified))
Currently translated at 70.5% (330 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hans/
* Translated using Weblate (Lithuanian)
Currently translated at 67.3% (315 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/lt/
* Translated using Weblate (Galician)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/
* Translated using Weblate (German)
Currently translated at 98.2% (460 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
* Translated using Weblate (Norwegian Bokmål)
Currently translated at 63.8% (299 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/nb_NO/
* Translated using Weblate (Portuguese (Brazil))
Currently translated at 74.1% (347 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt_BR/
* Translated using Weblate (French)
Currently translated at 99.3% (465 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
* Translated using Weblate (French)
Currently translated at 99.3% (465 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
* Translated using Weblate (French)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
* Translated using Weblate (French)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
* Translated using Weblate (French)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
* Translated using Weblate (French)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
* Translated using Weblate (French)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
* Translated using Weblate (French)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
* Translated using Weblate (German)
Currently translated at 98.2% (460 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
* Translated using Weblate (German)
Currently translated at 98.2% (460 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
* Translated using Weblate (German)
Currently translated at 98.2% (460 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
* Translated using Weblate (German)
Currently translated at 98.2% (460 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
* Translated using Weblate (French)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
* Translated using Weblate (French)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
* Translated using Weblate (Italian)
Currently translated at 94.4% (442 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/it/
* Translated using Weblate (Russian)
Currently translated at 83.3% (390 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ru/
* Translated using Weblate (German)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
* Translated using Weblate (Finnish)
Currently translated at 93.8% (439 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fi/
* Translated using Weblate (Basque)
Currently translated at 77.9% (365 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/eu/
* Translated using Weblate (Arabic)
Currently translated at 77.3% (362 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ar/
* Translated using Weblate (Basque)
Currently translated at 78.8% (369 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/eu/
* Translated using Weblate (German)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
* Translated using Weblate (Spanish)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/es/
* Translated using Weblate (Occitan)
Currently translated at 89.3% (418 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/oc/
* Translated using Weblate (Vietnamese)
Currently translated at 32.0% (150 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/vi/
* Translated using Weblate (Norwegian Bokmål)
Currently translated at 64.1% (300 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/nb_NO/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 63.0% (295 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 69.4% (325 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 79.9% (374 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
* Translated using Weblate (Chinese (Simplified))
Currently translated at 70.5% (330 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hans/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
* Translated using Weblate (French)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
* Translated using Weblate (Norwegian Bokmål)
Currently translated at 76.2% (357 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/nb_NO/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
* Translated using Weblate (Portuguese)
Currently translated at 82.0% (384 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt/
* Translated using Weblate (Catalan)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ca/
* Translated using Weblate (Russian)
Currently translated at 85.0% (398 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ru/
* Translated using Weblate (Norwegian Bokmål)
Currently translated at 76.2% (357 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/nb_NO/
* Translated using Weblate (Japanese)
Currently translated at 100.0% (468 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ja/
* Translated using Weblate (Occitan)
Currently translated at 89.9% (421 of 468 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/oc/
Co-authored-by: JC Brand <jc@opkode.com>
Co-authored-by: Michael Lu <yeskky@gmail.com>
Co-authored-by: nautilusx <mail.ka@mailbox.org>
Co-authored-by: sergio <srg.dev@posteo.net>
Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Xosé M <xosem@disroot.org>
Co-authored-by: george k <norhorn@gmail.com>
Co-authored-by: Lucas Araujo <lucassants2808@gmail.com>
Co-authored-by: Jeannette L <j.lavoie@net-c.ca>
Co-authored-by: Artem <KovalevArtem.ru@gmail.com>
Co-authored-by: opsi-gei <krummel@gei.de>
Co-authored-by: Janne E <pyskoovits@gmail.com>
Co-authored-by: IZARO BASURKO <izarobasurko@disroot.org>
Co-authored-by: ButterflyOfFire <ButterflyOfFire@protonmail.com>
Co-authored-by: Tom Teichler <gitlab@dummerdelfin.de>
Co-authored-by: Quentí <githubou@quentino.fr>
Co-authored-by: darkcloudcat <leducthn@gmail.com>
Co-authored-by: zilliu <zilliu@disroot.org>
Co-authored-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Co-authored-by: ssantos <ssantos@web.de>
Co-authored-by: SilvanaFP <silvana@mailbox.org>
Co-authored-by: Andrey <andrey@mailbox.org>
Co-authored-by: Mako N <mako@pasero.net>
Co-authored-by: Vincent L <vincent.laporte+weblate@mailbox.org>
2020-08-16 22:48:50 +02:00
JC Brand
fbcd7cf737
Emoji picker: Make sure events persist across add/remove from DOM
2020-08-14 15:07:15 +02:00
JC Brand
d615cebcfe
Use proper i18n func
2020-08-13 15:37:50 +02:00
JC Brand
6e86fe3300
Fixes #1913 . Can't connect to non-ascii JID
2020-08-13 11:26:02 +02:00