mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 01:32:17 -05:00
only extract stanza-id from live messages when disco feature is set
This commit is contained in:
parent
b90a1fe1db
commit
bb249e0881
@ -437,10 +437,10 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
||||
final boolean safeToExtract;
|
||||
if (isTypeGroupChat) {
|
||||
by = conversation.getJid().toBareJid();
|
||||
safeToExtract = true; //conversation.getMucOptions().hasFeature(Xmlns.STANZA_IDS);
|
||||
safeToExtract = conversation.getMucOptions().hasFeature(Xmlns.STANZA_IDS);
|
||||
} else {
|
||||
by = account.getJid().toBareJid();
|
||||
safeToExtract = true; //account.getXmppConnection().getFeatures().stanzaIds();
|
||||
safeToExtract = account.getXmppConnection().getFeatures().stanzaIds();
|
||||
}
|
||||
if (safeToExtract) {
|
||||
serverMsgId = extractStanzaId(packet, by);
|
||||
|
Loading…
Reference in New Issue
Block a user