Przeglądaj źródła

same comment fixes for DcShare

B. Petersen 3 lat temu
rodzic
commit
558ca93ed6
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      DcShare/ViewModel/ChatListViewModel.swift

+ 2 - 2
DcShare/ViewModel/ChatListViewModel.swift

@@ -183,11 +183,11 @@ class ChatListViewModel: NSObject {
 
 
     func filterAndUpdateList(searchText: String) {
     func filterAndUpdateList(searchText: String) {
 
 
-        // #1 chats with searchPattern in title bar
+        // #1 - search for chats with searchPattern in title
         let flags = DC_GCL_ADD_ALLDONE_HINT | DC_GCL_FOR_FORWARDING | DC_GCL_NO_SPECIALS
         let flags = DC_GCL_ADD_ALLDONE_HINT | DC_GCL_FOR_FORWARDING | DC_GCL_NO_SPECIALS
         searchResultChatList = dcContext.getChatlist(flags: flags, queryString: searchText, queryId: 0)
         searchResultChatList = dcContext.getChatlist(flags: flags, queryString: searchText, queryId: 0)
 
 
-        // #2 contacts with searchPattern in name or in email
+        // #2 - search for contacts with searchPattern in name or in email
         searchResultContactIds = dcContext.getContacts(flags: DC_GCL_ADD_SELF, queryString: searchText)
         searchResultContactIds = dcContext.getContacts(flags: DC_GCL_ADD_SELF, queryString: searchText)
 
 
         updateSearchResultSections()
         updateSearchResultSections()