use more appropriate function

This commit is contained in:
Chumva 2019-02-15 15:00:08 +02:00
parent f0eeb1e52e
commit 8cb762cde2

View file

@ -712,7 +712,7 @@ class TelegramHelper private constructor() {
if (oldMessage == null || (Math.max(message.editDate, message.date) > Math.max(oldMessage.editDate, oldMessage.date))) {
message.content = OsmandLocationUtils.parseMessageContent(message, this)
usersLocationMessages[message.id] = message
oldMessage?.also {
oldMessage?.let {
usersLocationMessages.remove(it.id)
}
}