remove unnecessary code in getChatListIds

This commit is contained in:
Chumva 2018-08-09 17:54:15 +03:00
parent fb118fa1a4
commit dd08aa3d31
2 changed files with 2 additions and 4 deletions

View file

@ -134,9 +134,7 @@ class TelegramHelper private constructor() {
} }
} }
fun getChatListIds(): List<Long> { fun getChatListIds() = getChatList().map { it.chatId }
return getChatList().map { it.chatId }
}
fun getChatIds() = chats.keys().toList() fun getChatIds() = chats.keys().toList()

View file

@ -35,7 +35,7 @@ class MyLocationTabFragment : Fragment(), TelegramListener, ChatLiveMessagesList
private var searchBoxSidesMargin: Int = 0 private var searchBoxSidesMargin: Int = 0
private var appBarScrollRange: Int = -1 private var appBarScrollRange: Int = -1
private val app: TelegramApplication private val app: TelegramApplication
get() = activity?.application as TelegramApplication get() = activity?.application as TelegramApplication