diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt index dbfb0e9df1..173a9b3f5b 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/LiveNowTabFragment.kt @@ -336,10 +336,8 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage val res = mutableListOf() 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) } } }