Fix check for map locations
This commit is contained in:
parent
06a357d8d3
commit
f5c0e3bbfc
1 changed files with 1 additions and 1 deletions
|
@ -1154,7 +1154,7 @@ class TelegramHelper private constructor() {
|
|||
val content = content
|
||||
val isUserTextLocation = (content is TdApi.MessageText) && content.text.text.startsWith(USER_TEXT_LOCATION_TITLE)
|
||||
val isOsmAndBot = isOsmAndBot(senderUserId) || isOsmAndBot(viaBotUserId)
|
||||
if (!(isUserTextLocation || content is MessageLocation || isOsmAndBot)) {
|
||||
if (!(isUserTextLocation || content is TdApi.MessageLocation || isOsmAndBot)) {
|
||||
return false
|
||||
}
|
||||
val lastEdited = Math.max(date, editDate)
|
||||
|
|
Loading…
Reference in a new issue