Change signature of getCurrentDistributor.
This commit is contained in:
parent
500659d4e1
commit
f0aca004ba
9 changed files with 13 additions and 16 deletions
|
|
@ -58,7 +58,7 @@ class DefaultPushService @Inject constructor(
|
|||
val userPushStore = userPushStoreFactory.getOrCreate(matrixClient.sessionId)
|
||||
val currentPushProviderName = userPushStore.getPushProviderName()
|
||||
val currentPushProvider = pushProviders.find { it.name == currentPushProviderName }
|
||||
val currentDistributorValue = currentPushProvider?.getCurrentDistributor(matrixClient)?.value
|
||||
val currentDistributorValue = currentPushProvider?.getCurrentDistributor(matrixClient.sessionId)?.value
|
||||
if (currentPushProviderName != pushProvider.name || currentDistributorValue != distributor.value) {
|
||||
// Unregister previous one if any
|
||||
currentPushProvider
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue