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

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();