Use Firebase by default and cleanup
This commit is contained in:
parent
dd71517abe
commit
ce9ec1a066
4 changed files with 6 additions and 56 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue