fix group/community leave message

pull/1023/head
Ryan ZHAO 8 months ago
parent 5b637c7b77
commit f7bc296225

@ -522,8 +522,8 @@ class ThreadSettingsViewModel: SessionTableViewModel, NavigationItemSource, Navi
.localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize)) .localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize))
} }
return "communityLeaveDescription" return "groupLeaveDescription"
.put(key: "community_name", value: threadViewModel.displayName) .put(key: "group_name", value: threadViewModel.displayName)
.localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize)) .localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize))
}()), }()),
confirmTitle: "leave".localized(), confirmTitle: "leave".localized(),

@ -389,8 +389,8 @@ public extension UIContextualAction {
.localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize)) .localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize))
} }
return "communityLeaveDescription" return "groupLeaveDescription"
.put(key: "community_name", value: threadViewModel.displayName) .put(key: "group_name", value: threadViewModel.displayName)
.localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize)) .localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize))
}() }()
@ -499,8 +499,8 @@ public extension UIContextualAction {
.localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize)) .localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize))
case .community: case .community:
return "communityLeaveDescription" return "groupLeaveDescription"
.put(key: "community_name", value: threadViewModel.displayName) .put(key: "group_name", value: threadViewModel.displayName)
.localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize)) .localizedFormatted(baseFont: .boldSystemFont(ofSize: Values.smallFontSize))
} }
}() }()

Loading…
Cancel
Save