Don't ignore incoming messages from current JID

they might be MAM archived messages.

Fixes #650
This commit is contained in:
JC Brand 2016-05-30 17:30:14 +00:00
parent 2b88db812d
commit 6bfcce5fcb
2 changed files with 3 additions and 8 deletions

View File

@ -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)

View File

@ -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