mirror of https://github.com/vector-im/riot-web
Check the correct event type for the room
Signed-off-by: Travis Ralston <travpc@gmail.com>pull/21833/head
parent
a8169a682c
commit
bb5f7bed85
|
@ -48,8 +48,11 @@ export default class RoomSettingsHandler extends SettingsHandler {
|
|||
const cli = MatrixClientPeg.get();
|
||||
const room = cli.getRoom(roomId);
|
||||
|
||||
let eventType = "im.vector.web.settings";
|
||||
if (settingName === "urlPreviewsEnabled") eventType = "org.matrix.room.preview_urls";
|
||||
|
||||
if (!room) return false;
|
||||
return room.currentState.maySendStateEvent("im.vector.web.settings", cli.getUserId());
|
||||
return room.currentState.maySendStateEvent(eventType, cli.getUserId());
|
||||
}
|
||||
|
||||
isSupported() {
|
||||
|
|
Loading…
Reference in New Issue