Fixed an issue where the conversation screen was dismissed incorrectly

Fixed a bug where going to the settings screen in a conversation with no messages would pop to the conversation list
This commit is contained in:
Morgan Pretty 2023-09-19 10:27:49 +10:00
parent 67ab1e5194
commit 8cbd318cca
1 changed files with 4 additions and 0 deletions

View File

@ -569,6 +569,10 @@ final class ConversationVC: BaseVC, SessionUtilRespondingViewController, Convers
let threadId: String = viewModel.threadData.threadId
if
(
self.navigationController == nil ||
self.navigationController?.viewControllers.contains(self) == false
) &&
viewModel.threadData.threadIsNoteToSelf == false &&
viewModel.threadData.threadShouldBeVisible == false &&
!SessionUtil.conversationInConfig(