瀏覽代碼

the search debouncing doesn't need to block the background thread before the first search query was executed

cyberta 3 年之前
父節點
當前提交
c865bd12f4
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      deltachat-ios/ViewModel/ChatListViewModel.swift

+ 0 - 1
deltachat-ios/ViewModel/ChatListViewModel.swift

@@ -355,7 +355,6 @@ extension ChatListViewModel: UISearchResultsUpdating {
         } else {
             inBgSearch = true
             DispatchQueue.global(qos: .userInteractive).async { [weak self] in
-                usleep(100000)
                 self?.needsAnotherBgSearch = false
                 self?.filterContentForSearchText(self?.searchText ?? "")