|
@@ -136,7 +136,6 @@ class ChatListViewModel: NSObject, ChatListViewModelProtocol {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
func msgIdFor(indexPath: IndexPath) -> Int? {
|
|
|
if searchActive {
|
|
|
return nil
|
|
@@ -144,7 +143,6 @@ class ChatListViewModel: NSObject, ChatListViewModelProtocol {
|
|
|
return chatList.getMsgId(index: indexPath.row)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
func deleteChat(chatId: Int) {
|
|
|
dcContext.deleteChat(chatId: chatId)
|
|
|
onChatListUpdate?()
|