parent
ac3ce93c56
commit
0dca7f8a5a
|
@ -849,9 +849,22 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
||||||
if (serverMsgId == null) {
|
if (serverMsgId == null) {
|
||||||
serverMsgId = extractStanzaId(account, packet);
|
serverMsgId = extractStanzaId(account, packet);
|
||||||
}
|
}
|
||||||
mXmppConnectionService.getJingleConnectionManager().deliverMessage(account, packet.getTo(), packet.getFrom(), child, remoteMsgId, serverMsgId, timestamp);
|
mXmppConnectionService
|
||||||
if (!account.getJid().asBareJid().equals(from.asBareJid()) && remoteMsgId != null) {
|
.getJingleConnectionManager()
|
||||||
processMessageReceipts(account, packet, remoteMsgId, query);
|
.deliverMessage(
|
||||||
|
account,
|
||||||
|
packet.getTo(),
|
||||||
|
packet.getFrom(),
|
||||||
|
child,
|
||||||
|
remoteMsgId,
|
||||||
|
serverMsgId,
|
||||||
|
timestamp);
|
||||||
|
final Contact contact = account.getRoster().getContact(from);
|
||||||
|
if (mXmppConnectionService.confirmMessages()
|
||||||
|
&& !contact.isSelf()
|
||||||
|
&& remoteMsgId != null
|
||||||
|
&& contact.showInContactList()) {
|
||||||
|
processMessageReceipts(account, packet, remoteMsgId, null);
|
||||||
}
|
}
|
||||||
} else if (query.isCatchup()) {
|
} else if (query.isCatchup()) {
|
||||||
if ("propose".equals(action)) {
|
if ("propose".equals(action)) {
|
||||||
|
|
|
@ -1505,7 +1505,9 @@ public class JingleRtpConnection extends AbstractJingleConnection
|
||||||
}
|
}
|
||||||
this.message.setTime(timestamp);
|
this.message.setTime(timestamp);
|
||||||
startRinging();
|
startRinging();
|
||||||
sendJingleMessage("ringing");
|
if (xmppConnectionService.confirmMessages() && id.getContact().showInContactList()) {
|
||||||
|
sendJingleMessage("ringing");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Log.d(
|
Log.d(
|
||||||
Config.LOGTAG,
|
Config.LOGTAG,
|
||||||
|
|
Loading…
Reference in a new issue