Change to lambda
This commit is contained in:
parent
c0fccae12e
commit
310c309e1e
4 changed files with 7 additions and 7 deletions
|
|
@ -21,9 +21,9 @@ import io.element.android.libraries.pushstore.api.UserPushStore
|
|||
import io.element.android.libraries.pushstore.api.UserPushStoreFactory
|
||||
|
||||
class FakeUserPushStoreFactory(
|
||||
val userPushStore: UserPushStore = FakeUserPushStore()
|
||||
val userPushStore: (SessionId) -> UserPushStore = { FakeUserPushStore() }
|
||||
) : UserPushStoreFactory {
|
||||
override fun getOrCreate(userId: SessionId): UserPushStore {
|
||||
return userPushStore
|
||||
return userPushStore(userId)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue