1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Merge pull request #1524 from matrix-org/luke/groups-store-true-global

Make GroupStoreCache global for cross-package access
This commit is contained in:
David Baker
2017-10-24 11:05:14 +01:00
committed by GitHub

View File

@@ -33,8 +33,7 @@ class GroupStoreCache {
}
}
let singletonGroupStoreCache = null;
if (!singletonGroupStoreCache) {
singletonGroupStoreCache = new GroupStoreCache();
if (global.singletonGroupStoreCache === undefined) {
global.singletonGroupStoreCache = new GroupStoreCache();
}
module.exports = singletonGroupStoreCache;
export default global.singletonGroupStoreCache;