mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 20:38:40 +00:00
Safer code
This commit is contained in:
committed by
Benoit Marty
parent
aef48bdf8a
commit
8f565edb0a
@@ -48,7 +48,8 @@ class LoggedInPresenter @Inject constructor(
|
|||||||
// Ensure pusher is registered
|
// Ensure pusher is registered
|
||||||
// TODO Register with Firebase for now
|
// TODO Register with Firebase for now
|
||||||
val pushProvider = pushService.getAvailablePushProviders().firstOrNull() ?: return@LaunchedEffect
|
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()
|
val permissionsState = postNotificationPermissionsPresenter.present()
|
||||||
|
|||||||
Reference in New Issue
Block a user