join channels on bridge request

master
lub 5 years ago
parent 945ebd690c
commit 0e29262b73

@ -37,6 +37,7 @@ async function logoutUser(matrixId) {
} }
async function bridgeRoom(sender, matrixRoom, remoteRoom) { async function bridgeRoom(sender, matrixRoom, remoteRoom) {
await bridge.getRoomStore().linkRooms(matrixRoom, remoteRoom); await bridge.getRoomStore().linkRooms(matrixRoom, remoteRoom);
tmiListener.join(remoteRoom.roomId);
console.log('Linked rooms', matrixRoom.roomId, 'and', remoteRoom.roomId, 'by', sender); console.log('Linked rooms', matrixRoom.roomId, 'and', remoteRoom.roomId, 'by', sender);
} }
async function unbridgeRoom(sender, roomId) { async function unbridgeRoom(sender, roomId) {

Loading…
Cancel
Save