fix expired time for removing map points
This commit is contained in:
parent
43427f39b8
commit
e4380be6f3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue