From 117614d59da68347ae4e50aa256f45672f1b6240 Mon Sep 17 00:00:00 2001 From: David Langley Date: Tue, 24 Oct 2023 17:14:48 +0100 Subject: [PATCH] Fix compile error. --- .../RoomNotificationSettingsStateProvider.kt | 1 + .../impl/notificationsettings/RoomNotificationSettingsView.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/notificationsettings/RoomNotificationSettingsStateProvider.kt b/features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/notificationsettings/RoomNotificationSettingsStateProvider.kt index 0024abbb35..cfc82585f0 100644 --- a/features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/notificationsettings/RoomNotificationSettingsStateProvider.kt +++ b/features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/notificationsettings/RoomNotificationSettingsStateProvider.kt @@ -38,6 +38,7 @@ internal class RoomNotificationSettingsStateProvider : PreviewParameterProvider< eventSink = { }, ), RoomNotificationSettingsState( + showUserDefinedSettingStyle = false, roomName = "Room 1", Async.Success(RoomNotificationSettings( mode = RoomNotificationMode.MUTE, diff --git a/features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/notificationsettings/RoomNotificationSettingsView.kt b/features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/notificationsettings/RoomNotificationSettingsView.kt index 898268359c..0b9a1fd5f9 100644 --- a/features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/notificationsettings/RoomNotificationSettingsView.kt +++ b/features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/notificationsettings/RoomNotificationSettingsView.kt @@ -67,6 +67,7 @@ fun RoomNotificationSettingsView( RoomSpecificNotificationSettingsView( state = state, modifier = modifier, + onShowGlobalNotifications = onShowGlobalNotifications, onBackPressed = onBackPressed, ) } @@ -76,6 +77,7 @@ fun RoomNotificationSettingsView( private fun RoomSpecificNotificationSettingsView( state: RoomNotificationSettingsState, modifier: Modifier = Modifier, + onShowGlobalNotifications: () -> Unit = {}, onBackPressed: () -> Unit = {}, ) { Scaffold(