Commit dd3133e7 authored by JC Brand's avatar JC Brand

Avoid `RID out of range` errors in Prosody

by not flushing stanzas when sending out an <inactive> CSI.

When reloading the page, the stanzas are resent (because we never had
time to receive acks) which causes problems on Prosody (and likely also
causes the Ejabberd "other-request" errors).
parent 9a551b3e
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
## 4.0.6 (unreleased) ## 4.0.6 (unreleased)
- Don't render http (i.e. non-TLS) resources - Don't render http (i.e. non-TLS) resources
- Bugfix: Converse caused `RID out of range` errors on Prosody
- #1331 Fix missing checkmarks in old muc messages - #1331 Fix missing checkmarks in old muc messages
- #1333 Don't send receipt requests in MUCs - #1333 Don't send receipt requests in MUCs
......
...@@ -42758,6 +42758,7 @@ Strophe.Websocket.prototype = { ...@@ -42758,6 +42758,7 @@ Strophe.Websocket.prototype = {
}); });
//# sourceMappingURL=strophe.js.map //# sourceMappingURL=strophe.js.map
/***/ }), /***/ }),
/***/ "./node_modules/strophejs-plugin-ping/strophe.ping.js": /***/ "./node_modules/strophejs-plugin-ping/strophe.ping.js":
...@@ -50737,8 +50738,6 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins ...@@ -50737,8 +50738,6 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins
'silent': true 'silent': true
}); });
this.model.sendChatState(); this.model.sendChatState();
_converse.connection.flush();
} }
} }
...@@ -1290,7 +1290,6 @@ converse.plugins.add('converse-chatview', { ...@@ -1290,7 +1290,6 @@ converse.plugins.add('converse-chatview', {
} else if (state === 'hidden') { } else if (state === 'hidden') {
this.setChatState(_converse.INACTIVE, {'silent': true}); this.setChatState(_converse.INACTIVE, {'silent': true});
this.model.sendChatState(); this.model.sendChatState();
_converse.connection.flush();
} }
} }
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment