deactivate grace period when coming to foreground

This commit is contained in:
Daniel Gultsch 2016-06-01 21:30:50 +02:00
parent 20ba1add1e
commit 45cc33ca36
1 changed files with 1 additions and 0 deletions

View File

@ -1795,6 +1795,7 @@ public class XmppConnectionService extends Service {
}
for (Account account : getAccounts()) {
if (account.getStatus() == Account.State.ONLINE) {
account.deactivateGracePeriod();
XmppConnection connection = account.getXmppConnection();
if (connection != null && connection.getFeatures().csi()) {
connection.sendActive();