Safer code
This commit is contained in:
parent
aef48bdf8a
commit
8f565edb0a
1 changed files with 2 additions and 1 deletions
|
|
@ -48,7 +48,8 @@ class LoggedInPresenter @Inject constructor(
|
|||
// Ensure pusher is registered
|
||||
// TODO Register with Firebase for now
|
||||
val pushProvider = pushService.getAvailablePushProviders().firstOrNull() ?: return@LaunchedEffect
|
||||
pushService.registerWith(matrixClient, pushProvider, pushProvider.getDistributorNames().first())
|
||||
val distributor = pushProvider.getDistributorNames().firstOrNull() ?: return@LaunchedEffect
|
||||
pushService.registerWith(matrixClient, pushProvider, distributor)
|
||||
}
|
||||
|
||||
val permissionsState = postNotificationPermissionsPresenter.present()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue