make sure automatic jmi responses are sent before ack
This commit is contained in:
parent
685e01e83f
commit
550fbc6d2c
|
@ -837,13 +837,13 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
|||
if (Namespace.JINGLE_MESSAGE.equals(child.getNamespace()) && JINGLE_MESSAGE_ELEMENT_NAMES.contains(child.getName())) {
|
||||
final String action = child.getName();
|
||||
if (query == null) {
|
||||
if (!account.getJid().asBareJid().equals(from.asBareJid())) {
|
||||
processMessageReceipts(account, packet, query);
|
||||
}
|
||||
if (serverMsgId == null) {
|
||||
serverMsgId = extractStanzaId(account, packet);
|
||||
}
|
||||
mXmppConnectionService.getJingleConnectionManager().deliverMessage(account, packet.getTo(), packet.getFrom(), child, remoteMsgId, serverMsgId, timestamp);
|
||||
if (!account.getJid().asBareJid().equals(from.asBareJid())) {
|
||||
processMessageReceipts(account, packet, query);
|
||||
}
|
||||
} else if (query.isCatchup()) {
|
||||
final String sessionId = child.getAttribute("id");
|
||||
if (sessionId == null) {
|
||||
|
|
Loading…
Reference in New Issue