remove unnecessary changes
This commit is contained in:
parent
5a71f738df
commit
7a8caa4831
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue