mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
swap sending presence and csi
This commit is contained in:
parent
794353ad0c
commit
7a97da6d21
@ -1827,12 +1827,12 @@ public class XmppConnectionService extends Service {
|
||||
if (account.getStatus() == Account.State.ONLINE) {
|
||||
XmppConnection connection = account.getXmppConnection();
|
||||
if (connection != null) {
|
||||
if (connection.getFeatures().csi()) {
|
||||
connection.sendInactive();
|
||||
}
|
||||
if (broadcastLastActivity) {
|
||||
sendPresence(account, broadcastLastActivity);
|
||||
}
|
||||
if (connection.getFeatures().csi()) {
|
||||
connection.sendInactive();
|
||||
}
|
||||
if (Config.CLOSE_TCP_WHEN_SWITCHING_TO_BACKGROUND && mPushManagementService.available(account)) {
|
||||
connection.waitForPush();
|
||||
cancelWakeUpCall(account.getUuid().hashCode());
|
||||
|
Loading…
Reference in New Issue
Block a user