Skip to content

Commit e7661b7

Browse files
committed
Updates #1760: Private messages no longer received after websocket reconnect
1 parent 88ea9f8 commit e7661b7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGES.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
- #1691: Fix `collection.chatbox is undefined` errors
99
- #1733: New message notifications for a minimized chat stack on top of each other
1010
- #1757: Chats are hidden behind the controlbox on mobile
11-
- #1772 `_converse.api.contact.add(jid, nick)` fails, says not a function
11+
- #1760: Private messages no longer received after websocket reconnect
12+
- #1772: `_converse.api.contact.add(jid, nick)` fails, says not a function
1213
- Prevent editing of sent file uploads.
1314
- Initial support for sending custom emojis. Currently only between Converse
1415
instances. Still working out a wire protocol for compatibility with other clients.
@@ -18,7 +19,6 @@
1819
- New config option [muc_mention_autocomplete_filter](https://conversejs.org/docs/html/configuration.html#muc_mention_autocomplete_filter)
1920
- New config option [muc_mention_autocomplete_show_avatar](https://conversejs.org/docs/html/configuration.html#muc_mention_autocomplete_show_avatar)
2021

21-
2222
### Breaking changes
2323

2424
- In contrast to sessionStorage and localStorage, IndexedDB is an asynchronous database.
@@ -46,6 +46,7 @@
4646
- The `converse-headline` plugin has been split up into `converse-headlines` and `converse-headlines-view`.
4747

4848
## 5.0.4 (2019-10-08)
49+
4950
- New config option [allow_message_corrections](https://conversejs.org/docs/html/configuration.html#allow-message-corrections)
5051
which, if set to `last`, limits editing of sent messages to the last message sent.
5152
- Bugfix: Don't treat every duplicate message ID as a message correction; since some clients don't use globally unique ID's this causes false positives.

src/headless/converse-chat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ converse.plugins.add('converse-chat', {
12801280

12811281
/************************ BEGIN Event Handlers ************************/
12821282
_converse.api.listen.on('chatBoxesFetched', autoJoinChats);
1283-
_converse.api.listen.on('presencesInitialized', (reconnecting) => (!reconnecting && registerMessageHandlers()));
1283+
_converse.api.listen.on('presencesInitialized', () => registerMessageHandlers());
12841284

12851285
_converse.api.listen.on('clearSession', () => {
12861286
if (_converse.shouldClearCache()) {

0 commit comments

Comments
 (0)