fix removeOldBufferedMessages method
This commit is contained in:
parent
c64e9eb0e9
commit
fe0452b3f4
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ class LocationMessages(val app: TelegramApplication) {
|
||||||
val diffTime = currentTime - message.time
|
val diffTime = currentTime - message.time
|
||||||
if (diffTime > bufferTime) {
|
if (diffTime > bufferTime) {
|
||||||
log.debug("remove old buffered message: $message with diff in time: $diffTime")
|
log.debug("remove old buffered message: $message with diff in time: $diffTime")
|
||||||
dbHelper.removeBufferedMessage(message)
|
dbHelper.removeBufferedMessage(message)
|
||||||
} else {
|
} else {
|
||||||
cleanedList.add(message)
|
cleanedList.add(message)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue