remove unnecessary code

This commit is contained in:
Chumva 2018-08-02 15:19:34 +03:00
parent 3b1a79c079
commit c8acf18294

View file

@ -136,9 +136,7 @@ class TelegramHelper private constructor() {
return chat.type is TdApi.ChatTypeSupergroup || chat.type is TdApi.ChatTypeBasicGroup
}
fun isPrivateChat(chat: TdApi.Chat): Boolean {
return chat.type is TdApi.ChatTypePrivate
}
fun isPrivateChat(chat: TdApi.Chat): Boolean = chat.type is TdApi.ChatTypePrivate
private fun isChannel(chat: TdApi.Chat): Boolean {
return chat.type is TdApi.ChatTypeSupergroup && (chat.type as TdApi.ChatTypeSupergroup).isChannel