diff --git a/vector/src/main/java/im/vector/app/core/datastore/DataStoreProvider.kt b/vector/src/main/java/im/vector/app/core/datastore/DataStoreProvider.kt index 0cea36f53d..f5f76b48b3 100644 --- a/vector/src/main/java/im/vector/app/core/datastore/DataStoreProvider.kt +++ b/vector/src/main/java/im/vector/app/core/datastore/DataStoreProvider.kt @@ -40,7 +40,7 @@ private class MappedPreferenceDataStoreSingletonDelegate : ReadOnlyProperty dataStoreCache.getOrPut(key) { PreferenceDataStoreFactory.create { - context.preferencesDataStoreFile(key) + context.applicationContext.preferencesDataStoreFile(key) } } }