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