3 const matrixStore = require('gitter-web-matrix-bridge/lib/store');
5 function MatrixBridgedRoomStrategy() {
8 this.preload = async function(troupeIds) {
9 for (const troupeId of troupeIds.toArray()) {
10 bridgeMap[troupeId] = await matrixStore.getMatrixRoomIdByGitterRoomId(troupeId);
14 this.map = function(troupeId) {
15 return bridgeMap[troupeId];
18 MatrixBridgedRoomStrategy.prototype = {
19 name: 'MatrixBridgedRoomStrategy'
22 module.exports = MatrixBridgedRoomStrategy;