Use Firebase by default and cleanup

This commit is contained in:
Benoit Marty 2023-04-11 17:02:14 +02:00 committed by Benoit Marty
parent dd71517abe
commit ce9ec1a066
4 changed files with 6 additions and 56 deletions

View file

@ -47,8 +47,8 @@ class LoggedInPresenter @Inject constructor(
LaunchedEffect(Unit) {
// Ensure pusher is registered
// TODO Manually select push provider for now
val pushProvider = pushService.getAvailablePushProviders().find { it.name == "UnifiedPush" } ?: return@LaunchedEffect
val distributor = pushProvider.getDistributors().first()
val pushProvider = pushService.getAvailablePushProviders().firstOrNull() ?: return@LaunchedEffect
val distributor = pushProvider.getDistributors().firstOrNull() ?: return@LaunchedEffect
pushService.registerWith(matrixClient, pushProvider, distributor)
}