fixed regression that caused stanza-ids not to be saved

This commit is contained in:
Daniel Gultsch 2017-03-08 20:20:34 +01:00
parent a3b51f7654
commit 064926a18b

View file

@ -212,7 +212,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
return null; 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 Jid by;
final boolean safeToExtract; final boolean safeToExtract;
if (isTypeGroupChat) { if (isTypeGroupChat) {
@ -401,7 +401,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
final boolean conversationMultiMode = conversation.getMode() == Conversation.MODE_MULTI; final boolean conversationMultiMode = conversation.getMode() == Conversation.MODE_MULTI;
if (serverMsgId == null) { if (serverMsgId == null) {
extractStanzaid(packet, isTypeGroupChat, conversation); serverMsgId = extractStanzaId(packet, isTypeGroupChat, conversation);
} }
if (isTypeGroupChat) { if (isTypeGroupChat) {