From 5ff420f4f0be742699ea86bef59305785cbf6de5 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Tue, 8 Feb 2022 15:56:07 +0000 Subject: [PATCH] marking the matrix provision as a singleton to avoid reinitialising --- vector/src/main/java/im/vector/app/core/di/SingletonModule.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/vector/src/main/java/im/vector/app/core/di/SingletonModule.kt b/vector/src/main/java/im/vector/app/core/di/SingletonModule.kt index 84061daf0f..2629d2056b 100644 --- a/vector/src/main/java/im/vector/app/core/di/SingletonModule.kt +++ b/vector/src/main/java/im/vector/app/core/di/SingletonModule.kt @@ -118,6 +118,7 @@ object VectorStaticModule { } @Provides + @Singleton fun providesMatrix(context: Context, configuration: MatrixConfiguration): Matrix { Matrix.initialize(context, configuration) return Matrix.getInstance(context)