pinning an archived conversation, unarchives and pins the conversation
This commit is contained in:
parent
0118a00436
commit
432e4ea4c6
@ -33,6 +33,9 @@ extension ThreadSwipeHandler where Self: UIViewController {
|
||||
pinnedStateAction.image = actionImage(name: "unpin-solid-24", title: CommonStrings.unpinAction)
|
||||
} else {
|
||||
pinnedStateAction = UIContextualAction(style: .destructive, title: nil) { [weak self] (_, _, completion) in
|
||||
if threadViewModel.isArchived {
|
||||
self?.archiveThread(threadViewModel: threadViewModel, closeConversationBlock: nil)
|
||||
}
|
||||
completion(false)
|
||||
self?.pinThread(threadViewModel: threadViewModel)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user