fix expired time for removing map points

This commit is contained in:
Chumva 2018-08-16 14:13:13 +03:00
parent 43427f39b8
commit e4380be6f3

View file

@ -54,7 +54,7 @@ class ShowLocationHelper(private val app: TelegramApplication) {
val messages = telegramHelper.getMessages()
for (message in messages) {
val date = Math.max(message.date, message.editDate) * 1000L
val expired = System.currentTimeMillis() - date > app.settings.locHistoryTime
val expired = System.currentTimeMillis() - date > app.settings.locHistoryTime * 1000L
if (expired) {
removeMapPoint(message.chatId, message)
}