remove unnecessary changes

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

View file

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