fix removeOldBufferedMessages method

This commit is contained in:
Dmitriy Ruban 2019-12-23 11:17:18 +02:00
parent c64e9eb0e9
commit fe0452b3f4

View file

@ -156,7 +156,7 @@ class LocationMessages(val app: TelegramApplication) {
val diffTime = currentTime - message.time
if (diffTime > bufferTime) {
log.debug("remove old buffered message: $message with diff in time: $diffTime")
dbHelper.removeBufferedMessage(message)
dbHelper.removeBufferedMessage(message)
} else {
cleanedList.add(message)
}