Remove unnecessary check
This commit is contained in:
parent
b05d510c44
commit
23be3c4764
1 changed files with 2 additions and 4 deletions
|
@ -336,10 +336,8 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage
|
|||
val res = mutableListOf<ChatItem>()
|
||||
messages.forEach { message ->
|
||||
if (!addOnlyViaBotMessages || message.viaBotUserId != 0) {
|
||||
TelegramUiHelper.messageToChatItem(telegramHelper, chat, message).also {
|
||||
if (it != null) {
|
||||
res.add(it)
|
||||
}
|
||||
TelegramUiHelper.messageToChatItem(telegramHelper, chat, message)?.also {
|
||||
res.add(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue