remove unnecessary changes

This commit is contained in:
Chumva 2018-08-28 11:50:42 +03:00
parent 5a71f738df
commit 7a8caa4831

View file

@ -243,7 +243,7 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage
): List<LocationItem> {
val res = mutableListOf<LocationItem>()
messages.forEach { message ->
if ((!addOnlyViaBotMessages || message.viaBotUserId != 0)) {
if (!addOnlyViaBotMessages || message.viaBotUserId != 0) {
TelegramUiHelper.messageToLocationItem(telegramHelper, chat, message)?.also {
res.add(it)
}