Fix permission detection for updating emojis
This commit is contained in:
parent
78951a3bc4
commit
99689c47dc
1 changed files with 1 additions and 2 deletions
|
@ -80,8 +80,7 @@ function RoomEmojis({ roomId }) {
|
|||
|
||||
const { usablePacks, createPack, deletePack } = useRoomPacks(room);
|
||||
|
||||
const myPowerlevel = room.getMember(mx.getUserId())?.powerLevel || 0;
|
||||
const canChange = room.currentState.hasSufficientPowerLevelFor('state_default', myPowerlevel);
|
||||
const canChange = room.currentState.maySendStateEvent('im.ponies.room_emote', mx.getUserId());
|
||||
|
||||
const handlePackCreate = (e) => {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Reference in a new issue