We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9de0e9 commit 7e71ae3Copy full SHA for 7e71ae3
app.js
@@ -392,11 +392,10 @@ class App extends MatrixPuppetBridgeBase {
392
393
async renameChannelEvent(data) {
394
const payload = this.getPayload(data);
395
+ const roomAlias = this.getRoomAliasFromThirdPartyRoomId(payload.roomId);
396
try {
- const matrixRoomId = await this.getOrCreateMatrixRoomFromThirdPartyRoomId(payload.roomId);
397
- // XXX: temporary commented.
398
- // it is called in getOrCreateMatrixRoomFromThirdPartyRoomId
399
- //return this._renameChannelEvent(matrixRoomId, data.name);
+ const room = await this.puppet.getClient().getRoomIdForAlias(roomAlias);
+ return this._renameChannelEvent(room.room_id, data.name);
400
} catch (err) {
401
console.error(err);
402
this.sendStatusMsg({
0 commit comments