mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
Change to lambda
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user