Skip to content

Commit e9d61a3

Browse files
committed
fix check before call conversationDirtyAction
1 parent ec16f33 commit e9d61a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Yep/ViewControllers/Conversation/ConversationViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ final class ConversationViewController: BaseViewController {
675675
override func viewWillDisappear(animated: Bool) {
676676
super.viewWillDisappear(animated)
677677

678-
if conversationIsDirty {
678+
if conversationIsDirty && !conversation.invalidated {
679679
if let groupID = conversation.withGroup?.groupID {
680680
conversationDirtyAction?(groupID: groupID)
681681
}

0 commit comments

Comments
 (0)