Fix crash about several DataStores using the same file (#2312)
* Fix crash about several DataStores using the same file - Create `@SessionCoroutineScope` annotation to pass a session-managed coroutine scope to the DI. - Expose this scope from `MatrixClient`. - Rework DataStore file creation a bit. - Centralise session preference creation through `DefaultSessionPreferencesStoreFactory` until we figure out what went wrong with the scoping
This commit is contained in:
committed by
GitHub
parent
76369391af
commit
ede1dc0fab
@@ -33,6 +33,7 @@ interface SessionComponent : NodeFactoriesBindings {
|
||||
interface Builder {
|
||||
@BindsInstance
|
||||
fun client(matrixClient: MatrixClient): Builder
|
||||
|
||||
fun build(): SessionComponent
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user