Fix permission detection for updating emojis

This commit is contained in:
Emi Simpson 2023-02-17 20:10:16 -05:00
parent 78951a3bc4
commit 99689c47dc
No known key found for this signature in database
GPG key ID: A12F2C2FFDC3D847

View file

@ -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();