diff --git a/src/SlashCommands.js b/src/SlashCommands.js index 65f7f008f6..21c837030b 100644 --- a/src/SlashCommands.js +++ b/src/SlashCommands.js @@ -271,7 +271,7 @@ export const CommandMap = { return success(promise.then((url) => { if (!url) return; - return MatrixClientPeg.get().sendStateEvent(this.props.roomId, 'm.room.avatar', {url}, ''); + return MatrixClientPeg.get().sendStateEvent(roomId, 'm.room.avatar', {url}, ''); })); }, category: CommandCategories.actions,