File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -392,11 +392,10 @@ class App extends MatrixPuppetBridgeBase {
392
392
393
393
async renameChannelEvent ( data ) {
394
394
const payload = this . getPayload ( data ) ;
395
+ const roomAlias = this . getRoomAliasFromThirdPartyRoomId ( payload . roomId ) ;
395
396
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 ) ;
400
399
} catch ( err ) {
401
400
console . error ( err ) ;
402
401
this . sendStatusMsg ( {
You can’t perform that action at this time.
0 commit comments