pinning an archived conversation, unarchives and pins the conversation

This commit is contained in:
Martin Böttcher 2022-01-21 11:56:55 +01:00
parent 0118a00436
commit 432e4ea4c6

View File

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