JC Brand
00466cd550
Let the converse-loaded
event conform to the CustomEvent spec
...
https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
2020-10-26 13:09:15 +01:00
JC Brand
5a2d361c81
Fixes #2293 : Message carbons not re-enabled when reconnecting
2020-10-23 21:58:47 +02:00
JC Brand
476bcfe7cc
Fixes #2137 : Show back arrow on mobile
2020-10-23 21:36:39 +02:00
JC Brand
4252a17f62
Fixes #1642 Add option to hide participant list by default
...
In the process, turn it into a component
2020-10-23 21:18:05 +02:00
JC Brand
8c1e886af9
Fixes #2302 Bookmarks get duplicated on server push
2020-10-23 16:22:40 +02:00
Xavi
15f5b185c3
Fix message reorder issue after edit ( #2300 )
...
* keep message in place after edition by assigning previous message original timestamp
* update time displayed to keep current behaviour
* add test to check a message remains in the same position of the history after being edited
* briefly describe pr changes in changelog
2020-10-23 15:07:56 +02:00
Xavi
5a4fbe12a9
Allow getHats method to be overriden ( #2308 )
2020-10-23 14:09:30 +02:00
Dele Olajide
81f0cb49bb
fix #2307 - BootstrapModal no more accessible to plugins
2020-10-23 13:55:28 +02:00
Dele Olajide
646542602f
fix #2304 - Custom emojis (stickers) images not shown
2020-10-21 11:01:08 +02:00
JC Brand
7803fd2335
Clear chat boxes when clearing cache
2020-10-20 14:28:09 +02:00
JC Brand
19dc66900d
Split the trusted
setting into two new ones:
...
- `allow_user_trust_override`
- `clear_cache_on_logout`
The `persistent_store` setting can now also be set to `sessionStorage`
The `trusted` settings was in effect playing the role of two separate settings
and implicitly affecting a third ('persistent_store').
By breaking it up, we make things more explicit and allow for new
configurations. For example, clearing the cache on logout, while using
some kind of persistent store.
2020-10-20 11:29:03 +02:00
JC Brand
5341a1ea49
MUC: warn instead of error when we're no longer connected
2020-10-19 12:07:28 +02:00
bernard-ng
86c4853b2e
#2290 format dayjs locale
2020-10-15 14:48:07 +02:00
Xavi
042aa3a73e
Create hats from vcard conditionally ( #2285 )
...
* allow the use of MUC affiliation, MUC role, and VCard roles as hats
* update setting documentation
* remove filter from VCard roles
* update naming and documentation to make explicit the use of XEP-317 Hats
* include muc_hats config option update to changelog
2020-10-15 09:51:19 +02:00
Bernard Ngandu
e49f97472a
#2280 notify changes to client on bookmark-update ( #2287 )
...
* notify changes to client on bookmark-update
* update XEP-115 caps verification string
2020-10-14 13:09:33 +02:00
JC Brand
395aa8cb95
Use JS to dynamically set height of img modal
2020-10-13 15:35:54 +02:00
JC Brand
e73d14304c
Fix image to modal (i.e. avoid scrollbars)
2020-10-13 15:05:57 +02:00
JC Brand
4295264a33
MAM: Maintain scroll position during upwards infinite scroll
2020-10-13 06:25:31 +02:00
JC Brand
48f119b673
MAM: use bare JID as by
attribute for archive-id
...
in 1:1 chats.
See: https://xmpp.org/extensions/xep-0313.html#archives_id
2020-10-13 04:48:21 +02:00
JC Brand
fb773d5d9b
smacks: Unregister smack stanza handlers on disconnect
2020-10-09 15:26:29 +02:00
JC Brand
ab0521ebfb
smacks: move functions out of plugin's initialize
method
2020-10-09 14:52:56 +02:00
ChaosKid42
c9ba42d0a0
regression of #1317 : Don't show errors for CSI messages ( #2276 )
...
* regression of #1317 : Don't show errors for CSI messages
* fix failing tests
2020-10-08 12:13:04 +02:00
JC Brand
af4fd3b0c2
MUC: connect with stored password, if available
2020-10-07 15:42:17 +02:00
JC Brand
7aee9c4432
muc: simplify api.rooms
methods.
...
- Let `api.rooms.open` call `api.rooms.get` directly, instead of indirectly via `api.rooms.create`
- Remove the `createChatRoom` function
- Also strip URI parts from JID in `api.rooms.get` and use utility method for doing so
2020-10-07 15:31:13 +02:00
Bernard Ngandu
be833631f3
#1829 add color for different omemo state ( #2260 )
...
* #1829 css var instead of hard coded colors
2020-10-07 11:32:29 +02:00
JC Brand
3f08201f5a
Remove unused code for the removed features section in occupants sidebar
2020-10-07 11:20:16 +02:00
Xavi
86c04b876b
Allow mention autocomplete to trigger right after a new line ( #2267 )
...
* catch all whitespace characters instead of just new line
2020-10-07 11:05:18 +02:00
Koen Van den Wijngaert
15aef10d5d
#2092 fixes room list update loop with locked muc domains ( #2268 )
...
* Only update the room list after shown.bs.modal
* add changes to CHANGES.md
* Move shown listener to initialize
2020-10-07 10:37:35 +02:00
Christoph Scholz
f68eb65cd7
check against own jid when detecting forged mam messages
2020-10-06 20:30:40 +02:00
JC Brand
30d550596b
Remove converse-rsm as whitelisted plugin and dependency
2020-10-05 21:09:02 +02:00
Christoph Scholz
07f2f285ff
Fix issue #2168
2020-10-02 12:07:48 +02:00
JC Brand
383b6a27c3
Render the brand heading as a component
2020-10-02 11:44:28 +02:00
JC Brand
24ddbefb63
Pass model's whole JSON to nickname form
...
Not strictly necessary for vanilla Converse, but makes life easier
downstream
2020-10-01 16:29:44 +02:00
JC Brand
8ef3b10d39
Don't hide chats when singleton
is true
2020-10-01 13:43:42 +02:00
JC Brand
6d9752645f
Replace lodash methods with native ones
...
filter
find
has
isEmpty
isString
isUndefined
noop
reject
uniq
2020-10-01 12:56:00 +02:00
bernard ng
efd4e50378
Fix #2231 add sort by query ( #2234 )
...
Use of lowercase letters and Infinity to avoid calculation errors when the index is -1
2020-10-01 12:06:35 +02:00
JC Brand
e761923cc9
Bump @converse/skeletor and localForage
2020-09-30 18:51:21 +02:00
JC Brand
ccd9146c6c
Bugfixes. Fix order of parameters and don't render undefined
2020-09-30 18:51:21 +02:00
JC Brand
02a9126ab6
Log errors when failing to save a message to storage
2020-09-30 18:51:21 +02:00
JC Brand
b5783c0668
Refactor converse-api.query
and the RSM class
...
- The `converse.api.query` method now no longer accepts an RSM instance.
- The RSM class now separates `query` parameters from `result` attributes
- Improve JSDoc docs and remove need to make `converse-rsm` a plugin
- Add typedefs for the options expected by RSM and `api.archive.query`
2020-09-30 18:51:21 +02:00
Christoph Scholz
e7a3bb87c6
Update pot and po files
2020-09-30 10:59:39 +02:00
Christoph Scholz
ff5a046922
Revert "fix i18n of label group name"
...
This reverts commit 5a874a4956
.
2020-09-30 10:59:39 +02:00
Christoph Scholz
5ea2ccfc17
fixes #2238 i18n not working reliably
2020-09-28 13:31:19 +02:00
Kim Alvefur
76b488a672
Bugfix. Promise.resolve is not a constructor
2020-09-28 10:49:14 +02:00
JC Brand
65ad33ec81
Let message component listen for changes...
...
and render directly from those
Instead of doing it higher up in the chat view (which requires more
function calls and iterating through all messages).
2020-09-27 10:31:53 +02:00
JC Brand
4ebd3caf48
element: Call super.disconnectedCallback
2020-09-27 10:31:53 +02:00
JC Brand
904a1394eb
Always render avatar via lit-html
...
Fixes #2244 by checking if image already is in the `data:` format.
2020-09-27 10:31:53 +02:00
JC Brand
5dac2d8873
muc-views: Use lit-html instead of lodash templates
2020-09-27 10:31:32 +02:00
JC Brand
889f4d4e15
Always render spinner via lit-html
2020-09-26 10:04:33 +02:00
JC Brand
0ca2e5ae08
Remove need for lodash templates in headless build
2020-09-26 09:58:34 +02:00
JC Brand
3fc6f7fa23
Fixes #1924
2020-09-25 18:46:45 +02:00
JC Brand
3a88831b9d
Bugfix. MUC tries multiple times to register nick
2020-09-25 15:30:53 +02:00
JC Brand
5350cb107f
Don't throw timeout errors for sent IQ#result or IQ#error stanzas
2020-09-25 14:12:12 +02:00
JC Brand
e82d6785c2
Update pot and po files
2020-09-24 09:02:58 +02:00
Emmanuel Gil Peyrot
fff9eeaa5c
Translated using Weblate (French)
...
Currently translated at 99.6% (500 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
2020-09-21 18:15:57 +02:00
zilliu
a436f9e117
Translated using Weblate (Chinese (Traditional))
...
Currently translated at 99.2% (498 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
2020-09-21 18:15:57 +02:00
Nikolaj Nielsen
e7606d133d
Translated using Weblate (Danish)
...
Currently translated at 0.1% (1 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/da/
2020-09-21 18:15:57 +02:00
Georgi Bachev
cd7817126e
Added translation using Weblate (Danish)
2020-09-21 18:15:57 +02:00
aevw
8aeaa54ba4
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt_BR/
2020-09-21 18:15:57 +02:00
random r
9733d572de
Translated using Weblate (Italian)
...
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/it/
2020-09-21 18:15:57 +02:00
Xosé M
1d83c3b852
Translated using Weblate (Galician)
...
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/
2020-09-21 18:15:57 +02:00
nautilusx
d42aa4d3c6
Translated using Weblate (German)
...
Currently translated at 99.2% (498 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
2020-09-21 18:15:57 +02:00
JC Brand
78f8f73fea
Get rid of converse-uniview
plugin
...
Instead of overriding createChatBox, set 'hidden' flag via defaults
2020-09-21 18:08:48 +02:00
JC Brand
f79fd33302
Chat views: listen whether hidden
gets set and show/hide
2020-09-21 18:08:48 +02:00
Christoph Scholz
5a874a4956
fix i18n of label group name
2020-09-18 21:13:08 +02:00
JC Brand
b17e7cd55b
Fix rendering of SVG avatars
2020-09-18 15:09:55 +02:00
JC Brand
0a7dff442c
Fixes #2235
2020-09-18 15:09:55 +02:00
JC Brand
7330530d13
omemo: better error handling when some bundles can't be fetched
2020-09-18 15:09:55 +02:00
JC Brand
3af1ffc357
omemo: announce bundle info after publishing new device
2020-09-18 15:09:55 +02:00
JC Brand
32847e860f
pubsub: await IQ response when publishing
2020-09-18 15:09:23 +02:00
JC Brand
5949d29460
omemo: specify pubsub item id of 'current'
2020-09-18 15:09:23 +02:00
JC Brand
2e393d260b
Update to @converse/skeletor 0.0.2
2020-09-18 11:34:14 +02:00
JC Brand
5162f3f674
connection: Fix typo
...
This fixes anonymous logins
2020-09-18 11:34:03 +02:00
JC Brand
dd155220f0
Use declarative autofocus for login form
2020-09-18 11:33:24 +02:00
JC Brand
a0ae8135ce
Fixes #1481
...
For OMEMO in MUC, use the real JID of the user, not the MUC JID
2020-09-17 17:12:06 +02:00
JC Brand
a72ad8a53d
autocomplete: store query string on Suggestion instance
2020-09-17 14:55:52 +02:00
JC Brand
bbf4c08ffd
Prevent emoji from being inserted twice
2020-09-17 13:50:52 +02:00
JC Brand
ccbf049000
emoji: raise an error if getShortnameReferences
is called too soon
2020-09-17 12:24:18 +02:00
JC Brand
49cda74971
Update package-lock
2020-09-17 10:42:57 +02:00
JC Brand
7f2ba663d5
autocomplete: Use Array functions
2020-09-17 10:37:09 +02:00
JC Brand
0a82a177c4
OMEMO: ensure reflected encrypted MUC messages are identified
2020-09-17 10:37:09 +02:00
JC Brand
9fe7bfcd64
Include chatbox
in 'message' event data
2020-09-16 19:08:56 +02:00
dependabot[bot]
522e7706c1
Bump lodash from 4.17.15 to 4.17.19
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-09-15 15:43:41 +02:00
JC Brand
8d3cd687e7
Pass chatbox or _converse as context
2020-09-11 16:44:28 +02:00
JC Brand
bbcfc9f998
Bugfix. 2nd parameter for api.hook
is the context
2020-09-11 16:23:51 +02:00
JC Brand
71cfc7aba1
Bugfix. Include model when manually triggering change event
2020-09-11 16:01:15 +02:00
JC Brand
c0fc3c38f3
Bump to strophe 1.4 and add sprintf
2020-09-10 14:08:43 +02:00
JC Brand
543a29bcce
Fixes #2116
2020-09-10 11:08:27 +02:00
JC Brand
527c14b194
Fixes #2133
2020-09-10 10:51:57 +02:00
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
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