aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/services
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2015-01-26 00:48:56 +0100
committeriNPUTmice <daniel@gultsch.de>2015-01-26 00:48:56 +0100
commit91e85d2faf18088dc7dc01653bda108f0c04d729 (patch)
tree2e4e0cb1fc4885635df93b8bd91844f90f194064 /src/main/java/eu/siacs/conversations/services
parent94086bb9b7dfca4df7579758f6a3172e6c0b17dc (diff)
adapt caps on whether or not message confirmation is on
Diffstat (limited to 'src/main/java/eu/siacs/conversations/services')
-rw-r--r--src/main/java/eu/siacs/conversations/services/XmppConnectionService.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
index a171de3d..e34f9bd7 100644
--- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
@@ -140,7 +140,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
account.pendingConferenceLeaves.clear();
fetchRosterFromServer(account);
fetchBookmarks(account);
- sendPresencePacket(account, mPresenceGenerator.sendPresence(account));
+ sendPresence(account);
connectMultiModeConversations(account);
updateConversationUi();
}
@@ -2150,6 +2150,10 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
}
}
+ public void sendPresence(final Account account) {
+ sendPresencePacket(account, mPresenceGenerator.sendPresence(account));
+ }
+
public MessageGenerator getMessageGenerator() {
return this.mMessageGenerator;
}