Change signature of getCurrentDistributor.
This commit is contained in:
parent
500659d4e1
commit
f0aca004ba
9 changed files with 13 additions and 16 deletions
|
|
@ -41,8 +41,8 @@ class UnifiedPushProvider @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
override suspend fun getCurrentDistributor(matrixClient: MatrixClient): Distributor? {
|
||||
val distributorValue = unifiedPushStore.getDistributorValue(matrixClient.sessionId)
|
||||
override suspend fun getCurrentDistributor(sessionId: SessionId): Distributor? {
|
||||
val distributorValue = unifiedPushStore.getDistributorValue(sessionId)
|
||||
return getDistributors().find { it.value == distributorValue }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue