use more appropriate function
This commit is contained in:
parent
f0eeb1e52e
commit
8cb762cde2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue