diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-07-20 02:26:23 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-07-20 02:26:23 +0200 |
commit | 22e504b8f96af6c5f54d8f7c82a190fefa4e5fb1 (patch) | |
tree | 119927970519f48bd1aa66d70d093bebc893b1ff /src/eu/siacs/conversations/parser/MessageParser.java | |
parent | 1cfe557b2b7035c3b7df26948b82a11dff141e77 (diff) |
ignore groupchats messages that are pending leave
Diffstat (limited to 'src/eu/siacs/conversations/parser/MessageParser.java')
-rw-r--r-- | src/eu/siacs/conversations/parser/MessageParser.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/parser/MessageParser.java b/src/eu/siacs/conversations/parser/MessageParser.java index 728faf4b7..60d8fc6b4 100644 --- a/src/eu/siacs/conversations/parser/MessageParser.java +++ b/src/eu/siacs/conversations/parser/MessageParser.java @@ -109,6 +109,9 @@ public class MessageParser extends AbstractParser implements private Message parseGroupchat(MessagePacket packet, Account account) { int status; String[] fromParts = packet.getFrom().split("/"); + if (mXmppConnectionService.find(account.pendingConferenceLeaves,account,fromParts[0]) != null) { + return null; + } Conversation conversation = mXmppConnectionService .findOrCreateConversation(account, fromParts[0], true); if (packet.hasChild("subject")) { |