Fix logout disabling services

This commit is contained in:
Chumva 2019-07-18 12:32:43 +03:00
parent c3831b1600
commit 8864917676

View file

@ -356,7 +356,9 @@ class MainActivity : AppCompatActivity(), TelegramListener, ActionButtonsListene
}
fun logoutTelegram(silent: Boolean = false) {
if (telegramHelper.getTelegramAuthorizationState() == TelegramHelper.TelegramAuthorizationState.READY) {
if (telegramHelper.getTelegramAuthorizationState() == TelegramAuthorizationState.READY) {
app.stopMonitoring()
app.stopSharingLocation()
if (app.isInternetConnectionAvailable) {
app.locationMessages.clearBufferedMessages()
settings.clear()