Skip to content

Commit

Permalink
fix: app asking for notification permission on each navigation to the…
Browse files Browse the repository at this point in the history
… HomeScreen[WPB-10750] (#3374)
  • Loading branch information
MohamadJaara authored Aug 26, 2024
1 parent 0ad8177 commit 00b6633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/kotlin/com/wire/android/ui/home/HomeScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fun HomeScreen(
rememberShowNotificationsPermissionFlow(
onPermissionGranted = { /* do nothing */ },
onPermissionDenied = showNotificationsPermissionDeniedDialog,
onPermissionPermanentlyDenied = showNotificationsPermissionDeniedDialog,
onPermissionPermanentlyDenied = { /* do nothing */ },
)

val lifecycleOwner = LocalLifecycleOwner.current
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ import com.wire.android.util.extension.openAppInfoScreen
*/
@Composable
fun PermissionsDeniedRequestDialog(
@StringRes title: Int = R.string.app_permission_dialog_title,
@StringRes body: Int,
@StringRes title: Int = R.string.app_permission_dialog_title,
@StringRes positiveButton: Int = R.string.app_permission_dialog_settings_positive_button,
@StringRes negativeButton: Int = R.string.app_permission_dialog_settings_negative_button,
onDismiss: () -> Unit
Expand Down

0 comments on commit 00b6633

Please sign in to comment.