Skip to content

Commit

Permalink
Check for Event.contactsChanged if main is necessary (#2242)
Browse files Browse the repository at this point in the history
It's not
  • Loading branch information
zeitschlag committed Aug 2, 2024
1 parent 70e8742 commit 8b0d5cb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions DcCore/DcCore/DC/events.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,10 @@ public class DcEventHandler {
return
}
logger.info("📡[\(accountId)] contact changed: \(data1)")
DispatchQueue.main.async {
NotificationCenter.default.post(name: Event.contactsChanged, object: nil, userInfo: [
"contact_id": Int(data1)
])
}

NotificationCenter.default.post(name: Event.contactsChanged, object: nil, userInfo: [
"contact_id": Int(data1)
])

case DC_EVENT_CONNECTIVITY_CHANGED:
if accountId != dcAccounts.getSelected().id {
Expand Down

0 comments on commit 8b0d5cb

Please sign in to comment.