fix an issue where clicking on user count didn't navigate to the correct screen

This commit is contained in:
Ryan Zhao 2023-09-25 11:02:25 +10:00
parent 00008787cc
commit 946acf3089
1 changed files with 12 additions and 1 deletions

View File

@ -33,7 +33,18 @@ extension ConversationVC:
@objc func openSettingsFromTitleView() {
switch self.titleView.currentLabelType {
case .none, .notificationSettings, .userCount:
case .userCount:
if self.viewModel.threadData.threadVariant == .group || self.viewModel.threadData.threadVariant == .legacyGroup {
let viewController = EditClosedGroupVC(
threadId: self.viewModel.threadData.threadId,
threadVariant: self.viewModel.threadData.threadVariant
)
navigationController?.pushViewController(viewController, animated: true)
} else {
openSettings()
}
break
case .none, .notificationSettings:
openSettings()
break