mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:30:43 +00:00
Use Firebase by default and cleanup
This commit is contained in:
committed by
Benoit Marty
parent
dd71517abe
commit
ce9ec1a066
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user