Fix check for map locations

This commit is contained in:
Chumva 2019-01-11 19:02:51 +02:00
parent 06a357d8d3
commit f5c0e3bbfc

View file

@ -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)