fix an issue where rejected message requests will come back on linked devices

pull/614/head
Ryan Zhao 4 years ago
parent 8db281e42f
commit 5bb287f258

@ -1249,12 +1249,16 @@ extension ConversationVC {
// Delete all thread content // Delete all thread content
self?.thread.removeAllThreadInteractions(with: transaction) self?.thread.removeAllThreadInteractions(with: transaction)
self?.thread.remove(with: transaction)
}, },
completion: { [weak self] in completion: { [weak self] in
// Force a config sync and pop to the previous screen // Force a config sync and pop to the previous screen
MessageSender.syncConfiguration(forceSyncNow: true).retainUntilComplete() MessageSender.syncConfiguration(forceSyncNow: true).retainUntilComplete()
// Remove the thread after the config message is sent.
// Otherwise the blocked user won't be included in the
// config message.
self?.thread.remove()
DispatchQueue.main.async { DispatchQueue.main.async {
self?.navigationController?.popViewController(animated: true) self?.navigationController?.popViewController(animated: true)
} }

Loading…
Cancel
Save