Change signature of getCurrentDistributor.
This commit is contained in:
parent
500659d4e1
commit
f0aca004ba
9 changed files with 13 additions and 16 deletions
|
|
@ -147,7 +147,7 @@ class LoggedInPresenter @Inject constructor(
|
|||
.also { pusherRegistrationState.value = AsyncData.Failure(PusherRegistrationFailure.NoDistributorsAvailable()) }
|
||||
pushService.registerWith(matrixClient, pushProvider, distributor)
|
||||
} else {
|
||||
val currentPushDistributor = currentPushProvider.getCurrentDistributor(matrixClient)
|
||||
val currentPushDistributor = currentPushProvider.getCurrentDistributor(matrixClient.sessionId)
|
||||
if (currentPushDistributor == null) {
|
||||
Timber.tag(pusherTag.value).d("Register with the first available distributor")
|
||||
val distributor = currentPushProvider.getDistributors().firstOrNull()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue