From 72068d1a26531be549d8cd90ed167442b637fcff Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Sun, 9 Nov 2014 21:14:37 +0100 Subject: fixed private messages --- src/main/java/eu/siacs/conversations/parser/MessageParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') 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; } -- cgit v1.2.3