From fe0452b3f4aeb25b9a024d56cc688b66e0bd9106 Mon Sep 17 00:00:00 2001 From: Dmitriy Ruban Date: Mon, 23 Dec 2019 11:17:18 +0200 Subject: [PATCH] fix removeOldBufferedMessages method --- .../src/net/osmand/telegram/helpers/LocationMessages.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/helpers/LocationMessages.kt b/OsmAnd-telegram/src/net/osmand/telegram/helpers/LocationMessages.kt index e005bf2581..b39edb3c8c 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/helpers/LocationMessages.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/helpers/LocationMessages.kt @@ -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) }