Fix updating lastLocation

This commit is contained in:
Chumva 2019-05-26 14:19:15 +03:00
parent db11fb6181
commit 3d2c045b3a

View file

@ -68,12 +68,12 @@ class ShareLocationHelper(private val app: TelegramApplication) {
if (record) {
lastLocationUpdateTime = System.currentTimeMillis()
lastLocation = location
if (app.settings.getChatsShareInfo().isNotEmpty()) {
shareLocationMessages(location, app.telegramHelper.getCurrentUserId())
}
}
}
lastLocation = location
app.settings.updateSharingStatusHistory()
refreshNotification()
}