fix removeOldBufferedMessages method

This commit is contained in:
Dmitriy Ruban 2019-12-23 10:59:06 +02:00
parent 46cc40fd8d
commit c64e9eb0e9

View file

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