Skip to content

Commit 7e71ae3

Browse files
committed
Fix to affect to rename unjoined channel
1 parent a9de0e9 commit 7e71ae3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,10 @@ class App extends MatrixPuppetBridgeBase {
392392

393393
async renameChannelEvent(data) {
394394
const payload = this.getPayload(data);
395+
const roomAlias = this.getRoomAliasFromThirdPartyRoomId(payload.roomId);
395396
try {
396-
const matrixRoomId = await this.getOrCreateMatrixRoomFromThirdPartyRoomId(payload.roomId);
397-
// XXX: temporary commented.
398-
// it is called in getOrCreateMatrixRoomFromThirdPartyRoomId
399-
//return this._renameChannelEvent(matrixRoomId, data.name);
397+
const room = await this.puppet.getClient().getRoomIdForAlias(roomAlias);
398+
return this._renameChannelEvent(room.room_id, data.name);
400399
} catch (err) {
401400
console.error(err);
402401
this.sendStatusMsg({

0 commit comments

Comments
 (0)