aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-04 22:42:12 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-06-04 22:42:12 +0200
commit7a97da6d2119e9f7feabec139d05391d40582599 (patch)
treeabd94a5578444cbfe586a5d8e80eeddf3bf39c67 /src
parent794353ad0c8b6a0a3f854fd37f12f441915a26f5 (diff)
swap sending presence and csi
Diffstat (limited to '')
-rw-r--r--src/main/java/eu/siacs/conversations/services/XmppConnectionService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
index fa07019f3..5b0c4591a 100644
--- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
@@ -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());