Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.ReactNative
Commits
f5188a8d
Commit
f5188a8d
authored
Jan 28, 2020
by
devyaniChoubey
Committed by
Diego Mello
Jan 28, 2020
Browse files
[FIX] Not allow to send messages to archived room (#1623)
parent
5dc72681
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/RoomView/index.js
View file @
f5188a8d
...
...
@@ -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
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment