deactivate grace period when coming to foreground
This commit is contained in:
parent
20ba1add1e
commit
45cc33ca36
|
@ -1795,6 +1795,7 @@ public class XmppConnectionService extends Service {
|
||||||
}
|
}
|
||||||
for (Account account : getAccounts()) {
|
for (Account account : getAccounts()) {
|
||||||
if (account.getStatus() == Account.State.ONLINE) {
|
if (account.getStatus() == Account.State.ONLINE) {
|
||||||
|
account.deactivateGracePeriod();
|
||||||
XmppConnection connection = account.getXmppConnection();
|
XmppConnection connection = account.getXmppConnection();
|
||||||
if (connection != null && connection.getFeatures().csi()) {
|
if (connection != null && connection.getFeatures().csi()) {
|
||||||
connection.sendActive();
|
connection.sendActive();
|
||||||
|
|
Loading…
Reference in New Issue