Fix setReadOnly calls on RoomView

This commit is contained in:
Diego Mello 2022-12-06 15:27:18 -03:00
parent 696a7e623d
commit c877a0600b
1 changed files with 7 additions and 1 deletions

View File

@ -409,7 +409,13 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
if (insets.left !== prevProps.insets.left || insets.right !== prevProps.insets.right) { if (insets.left !== prevProps.insets.left || insets.right !== prevProps.insets.right) {
this.setHeader(); this.setHeader();
} }
this.setReadOnly(); if (
!dequal(prevState.roomUpdate.muted, roomUpdate.muted) ||
prevState.roomUpdate.archived !== roomUpdate.archived ||
prevState.roomUpdate.ro !== roomUpdate.ro
) {
this.setReadOnly();
}
} }
updateOmnichannel = async () => { updateOmnichannel = async () => {