mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 22:41:07 +02: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:
commit
f29f627c31
@ -33,8 +33,7 @@ class GroupStoreCache {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let singletonGroupStoreCache = null;
|
if (global.singletonGroupStoreCache === undefined) {
|
||||||
if (!singletonGroupStoreCache) {
|
global.singletonGroupStoreCache = new GroupStoreCache();
|
||||||
singletonGroupStoreCache = new GroupStoreCache();
|
|
||||||
}
|
}
|
||||||
module.exports = singletonGroupStoreCache;
|
export default global.singletonGroupStoreCache;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user