diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-11-09 21:14:37 +0100 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-11-09 21:14:37 +0100 |
commit | 72068d1a26531be549d8cd90ed167442b637fcff (patch) | |
tree | 5e5eaffb2557a424dbdf1885a42bbffece859a13 /src/main/java | |
parent | a45a343604ad1e85d873effc9c75c27b14b510ca (diff) |
fixed private messages
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/parser/MessageParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/parser/MessageParser.java b/src/main/java/eu/siacs/conversations/parser/MessageParser.java index c68a6b23..e40855d8 100644 --- a/src/main/java/eu/siacs/conversations/parser/MessageParser.java +++ b/src/main/java/eu/siacs/conversations/parser/MessageParser.java @@ -23,7 +23,7 @@ public class MessageParser extends AbstractParser implements } private Message parseChat(MessagePacket packet, Account account) { - final Jid jid = packet.getFrom().toBareJid(); + final Jid jid = packet.getFrom(); Conversation conversation = mXmppConnectionService .findOrCreateConversation(account, jid.toBareJid(), false); updateLastseen(packet, account, true); @@ -42,7 +42,6 @@ public class MessageParser extends AbstractParser implements if (conversation.getMode() == Conversation.MODE_MULTI && !jid.isBareJid()) { finishedMessage.setType(Message.TYPE_PRIVATE); - finishedMessage.setCounterpart(packet.getFrom()); finishedMessage.setTrueCounterpart(conversation.getMucOptions() .getTrueCounterpart(jid.getResourcepart())); if (conversation.hasDuplicateMessage(finishedMessage)) { @@ -50,6 +49,7 @@ public class MessageParser extends AbstractParser implements } } + finishedMessage.setCounterpart(jid); finishedMessage.setTime(getTimestamp(packet)); return finishedMessage; } |