Fix TdApi.Message.isAppropriate()
This commit is contained in:
parent
04d6e82157
commit
423bd5d628
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue