Fix TdApi.Message.isAppropriate()

This commit is contained in:
Alex Sytnyk 2018-08-16 15:53:57 +03:00
parent 04d6e82157
commit 423bd5d628

View file

@ -762,7 +762,8 @@ class TelegramHelper private constructor() {
val content = content val content = content
return when (content) { return when (content) {
is TdApi.MessageLocation -> true is TdApi.MessageLocation -> true
is TdApi.MessageText -> isOsmAndBot(senderUserId) || isOsmAndBot(viaBotUserId) is TdApi.MessageText -> (isOsmAndBot(senderUserId) || isOsmAndBot(viaBotUserId))
&& content.text.text.startsWith(DEVICE_PREFIX)
else -> false else -> false
} }
} }