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