|
@@ -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()
|