mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 18:05:59 +03:00
marking the matrix provision as a singleton to avoid reinitialising
This commit is contained in:
parent
0390994e14
commit
5ff420f4f0
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ object VectorStaticModule {
|
|||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun providesMatrix(context: Context, configuration: MatrixConfiguration): Matrix {
|
||||
Matrix.initialize(context, configuration)
|
||||
return Matrix.getInstance(context)
|
||||
|
|
Loading…
Reference in a new issue