[FIX] Not allow to send messages to archived room (#1623)
This commit is contained in:
parent
5dc7268116
commit
f5188a8d12
|
@ -791,7 +791,7 @@ class RoomView extends React.Component {
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (this.isReadOnly) {
|
if (this.isReadOnly || room.archived) {
|
||||||
return (
|
return (
|
||||||
<View style={styles.readOnly}>
|
<View style={styles.readOnly}>
|
||||||
<Text style={[styles.previewMode, { color: themes[theme].titleText }]}>{I18n.t('This_room_is_read_only')}</Text>
|
<Text style={[styles.previewMode, { color: themes[theme].titleText }]}>{I18n.t('This_room_is_read_only')}</Text>
|
||||||
|
|
Loading…
Reference in New Issue