mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-26 01:09:13 -05:00
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
Block a user