chat-sdk / chat-sdk-ios

Chat SDK iOS - Open Source Mobile Messenger
http://sdk.chat
Other
914 stars 275 forks source link

How to get all threads in background thread? #430

Closed minhthuc251 closed 1 year ago

minhthuc251 commented 4 years ago

I have a problem when call BChatSDK.core()?.threads(with: bThreadFilterPrivateThread, includeDeleted: false) if db have too many entities. It make app freeze because i must call this function in main thread. I tried using DispatchQueue global but it make app crash with error : was mutated while being enumerated. Please help!