Fix setReadOnly calls on RoomView
This commit is contained in:
parent
696a7e623d
commit
c877a0600b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue