remove unnecessary search
This commit is contained in:
parent
ea524b45da
commit
5c91ad9976
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class TelegramHelper private constructor() {
|
|||
usersLocationMessages.values.firstOrNull { it.senderUserId == user.id }
|
||||
|
||||
fun getChatMessages(chatId: Long) =
|
||||
usersLocationMessages.values.filter { chats[it.chatId]?.id == chatId }
|
||||
usersLocationMessages.values.filter { it.chatId == chatId }
|
||||
|
||||
fun getMessages() = usersLocationMessages.values.toList()
|
||||
|
||||
|
|
Loading…
Reference in a new issue