Skip to content

Commit 0eaf214

Browse files
committed
Updates #1760. Re-register messages handlers upon reconnection
1 parent 789bb1e commit 0eaf214

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

CHANGES.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Changelog
22

3-
## 6.0.0 (Unreleased)
3+
## 5.0.5 (Unreleased)
44

55
- #129: Add support for XEP-0156: Disovering Alternative XMPP Connection Methods. Only XML is supported for now.
66
- #1089: When filtering the roster for `online` users, show all non-offline users.
77
- #1691: Fix `collection.chatbox is undefined` errors
88
- #1733: New message notifications for a minimized chat stack on top of each other
99
- #1757: Chats are hidden behind the controlbox on mobile
10+
- #1760 Private messages no longer received after websocket reconnect
1011
- #1772 `_converse.api.contact.add(jid, nick)` fails, says not a function
1112
- Prevent editing of sent file uploads.
1213
- Initial support for sending custom emojis. Currently only between Converse

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/headless/converse-chatboxes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1169,13 +1169,13 @@ converse.plugins.add('converse-chatboxes', {
11691169
},
11701170

11711171
onConnected (reconnecting) {
1172+
this.registerMessageHandler();
11721173
if (reconnecting) {
11731174
return;
11741175
}
11751176
const storage = _converse.config.get('storage');
11761177
const id = `converse.chatboxes-${_converse.bare_jid}`;
11771178
this.browserStorage = _converse.createStore(id, storage);
1178-
this.registerMessageHandler();
11791179
this.fetch({
11801180
'add': true,
11811181
'success': c => this.onChatBoxesFetched(c)

webpack.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@
2020
auto_away: 300,
2121
auto_login: true,
2222
auto_register_muc_nickname: true,
23-
bosh_service_url: 'http://chat.example.org:5380/http-bind/',
23+
// bosh_service_url: 'http://chat.example.org:5380/http-bind/',
2424
debug: true,
2525
enable_smacks: true,
2626
i18n: 'en',
27-
2827
message_archiving: 'always',
2928
muc_domain: 'conference.chat.example.org',
3029
muc_respect_autojoin: true,
31-
password: 'secret',
3230
view_mode: 'fullscreen',
3331
websocket_url: 'ws://chat.example.org:5380/xmpp-websocket',
3432
whitelisted_plugins: ['converse-debug'],

0 commit comments

Comments
 (0)