update last seen in mucs. fixes #1508

This commit is contained in:
Daniel Gultsch 2015-10-19 23:20:33 +02:00
parent efab290c28
commit 9b07059b6e
1 changed files with 5 additions and 1 deletions

View File

@ -353,7 +353,11 @@ public class MessageParser extends AbstractParser implements
message.setTime(timestamp);
message.markable = packet.hasChild("markable", "urn:xmpp:chat-markers:0");
if (conversation.getMode() == Conversation.MODE_MULTI) {
message.setTrueCounterpart(conversation.getMucOptions().getTrueCounterpart(counterpart.getResourcepart()));
Jid trueCounterpart = conversation.getMucOptions().getTrueCounterpart(counterpart.getResourcepart());
message.setTrueCounterpart(trueCounterpart);
if (trueCounterpart != null) {
updateLastseen(packet,account,trueCounterpart,false);
}
if (!isTypeGroupChat) {
message.setType(Message.TYPE_PRIVATE);
}