fix group/community leave message

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

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

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

Loading…
Cancel
Save