diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 6fb99ece6..ad6db7ce0 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -38393,6 +38393,9 @@ MessageReceiver.prototype.extend({ if (ev.code === 3000) { return; } + if (ev.code === 3001) { + this.onEmpty(); + } // possible 403 or network issue. Make an request to confirm return this.server.getDevices(this.number) .then(this.connect.bind(this)) // No HTTP error? Reconnect diff --git a/libtextsecure/message_receiver.js b/libtextsecure/message_receiver.js index 33b045cb1..b8c66f2b0 100644 --- a/libtextsecure/message_receiver.js +++ b/libtextsecure/message_receiver.js @@ -57,6 +57,9 @@ MessageReceiver.prototype.extend({ if (ev.code === 3000) { return; } + if (ev.code === 3001) { + this.onEmpty(); + } // possible 403 or network issue. Make an request to confirm return this.server.getDevices(this.number) .then(this.connect.bind(this)) // No HTTP error? Reconnect