2
0
Эх сурвалжийг харах

Don't ignore incoming messages from current JID

they might be MAM archived messages.

Fixes #650
JC Brand 9 жил өмнө
parent
commit
6bfcce5fcb

+ 3 - 2
docs/CHANGES.md

@@ -3,14 +3,15 @@
 ## 1.0.3 (Unreleased)
 
 - Bugfix. Login form doesn't render after logging out, when `auto_reconnect = false`
-  [jcbrand]
+[jcbrand]
 - Also indicate new day for the first day's messages. [jcbrand]
 - Chat bot messages don't appear when they have the same ids as their commands.
   [jcbrand]
 - Updated onDisconnected method to fire disconnected event even if `auto_reconnect = false`. [kamranzafar]
 - Bugfix: MAM messages weren't being fetched oldest first. [jcbrand]
-- #553 Add processing hints to OTR messages [jcbrand]
 - Add processing hints to chat state notifications [jcbrand]
+- #553 Add processing hints to OTR messages [jcbrand]
+- #650 Don't ignore incoming messages with same JID as current user (might be MAM archived) [jcbrand]
 
 ## 1.0.2 (2016-05-24)
 

+ 0 - 6
src/converse-core.js

@@ -1273,12 +1273,6 @@
                         'info'
                     );
                     return true;
-                } else if (from_jid === converse.connection.jid) {
-                    converse.log(
-                        "onMessage: Ignoring incoming message sent from this client's JID: "+from_jid,
-                        'info'
-                    );
-                    return true;
                 } else if (utils.isHeadlineMessage(message)) {
                     // XXX: Ideally we wouldn't have to check for headline
                     // messages, but Prosody sends headline messages with the