mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Room list notifications tweaks (#6106)
We decided against changing how unread activity is rendered in the room list, so the experiment and its developer option are no longer needed. we have also added a notification settings entry for hiding the room list gray dots.
This commit is contained in:
+15
-1
@@ -26,7 +26,11 @@ struct NotificationSettingsScreen: View {
|
||||
|
||||
if context.enableNotifications {
|
||||
roomsNotificationSection
|
||||
|
||||
}
|
||||
|
||||
roomListActivitySection
|
||||
|
||||
if context.enableNotifications {
|
||||
if context.viewState.showCallsSettings, context.viewState.settings?.callsEnabled != nil {
|
||||
callsSection
|
||||
}
|
||||
@@ -139,6 +143,16 @@ struct NotificationSettingsScreen: View {
|
||||
}
|
||||
}
|
||||
|
||||
private var roomListActivitySection: some View {
|
||||
Section {
|
||||
ListRow(label: .plain(title: L10n.screenNotificationSettingsShowAllActivity),
|
||||
kind: .toggle($context.showAllRoomListActivity))
|
||||
.onChange(of: context.showAllRoomListActivity) {
|
||||
context.send(viewAction: .showAllRoomListActivityChanged)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private var callsSection: some View {
|
||||
Section {
|
||||
ListRow(label: .plain(title: L10n.screenNotificationSettingsCallsLabel),
|
||||
|
||||
Reference in New Issue
Block a user