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

pull/731/head
Ryan Zhao 9 months ago
parent 00008787cc
commit 946acf3089

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

Loading…
Cancel
Save