[FIX] Not allow to send messages to archived room (#1623)

This commit is contained in:
devyaniChoubey 2020-01-28 19:09:42 +05:30 committed by Diego Mello
parent 5dc7268116
commit f5188a8d12
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ class RoomView extends React.Component {
</View>
);
}
if (this.isReadOnly) {
if (this.isReadOnly || room.archived) {
return (
<View style={styles.readOnly}>
<Text style={[styles.previewMode, { color: themes[theme].titleText }]}>{I18n.t('This_room_is_read_only')}</Text>