Эх сурвалжийг харах

implemented msgIdFor indexpath

nayooti 5 жил өмнө
parent
commit
c61f737e11

+ 6 - 2
deltachat-ios/ViewModel/ChatListViewModel.swift

@@ -136,11 +136,15 @@ class ChatListViewModel: NSObject, ChatListViewModelProtocol {
         }
     }
 
+
     func msgIdFor(indexPath: IndexPath) -> Int? {
-        return nil
-       // return getCellViewModelFor(indexPath: indexPath).msgId
+        if searchActive {
+            return nil
+        }
+        return chatList.getMsgId(index: indexPath.row)
     }
 
+
     func deleteChat(chatId: Int) {
         dcContext.deleteChat(chatId: chatId)
         onChatListUpdate?()