From 784f507b151dd0a806cf86ac8902b018d0bdb6e0 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Thu, 9 Mar 2017 20:43:39 +0100 Subject: fixed regression that caused stanza-ids not to be saved --- src/main/java/de/pixart/messenger/parser/MessageParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/de/pixart/messenger/parser/MessageParser.java b/src/main/java/de/pixart/messenger/parser/MessageParser.java index a8cca22d7..b34c382e4 100644 --- a/src/main/java/de/pixart/messenger/parser/MessageParser.java +++ b/src/main/java/de/pixart/messenger/parser/MessageParser.java @@ -212,7 +212,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece return null; } - private static String extractStanzaid(Element packet, boolean isTypeGroupChat, Conversation conversation) { + private static String extractStanzaId(Element packet, boolean isTypeGroupChat, Conversation conversation) { final Jid by; final boolean safeToExtract; if (isTypeGroupChat) { @@ -399,7 +399,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece Conversation conversation = mXmppConnectionService.findOrCreateConversation(account, counterpart.toBareJid(), isTypeGroupChat, false, query); final boolean conversationMultiMode = conversation.getMode() == Conversation.MODE_MULTI; if (serverMsgId == null) { - extractStanzaid(packet, isTypeGroupChat, conversation); + serverMsgId = extractStanzaId(packet, isTypeGroupChat, conversation); } if (isTypeGroupChat) { if (counterpart.getResourcepart().equals(conversation.getMucOptions().getActualNick())) { -- cgit v1.2.3