diff --git a/app/soapbox/features/chats/chat_room.js b/app/soapbox/features/chats/chat_room.js index 4a8c480ea..f3e81cc12 100644 --- a/app/soapbox/features/chats/chat_room.js +++ b/app/soapbox/features/chats/chat_room.js @@ -58,11 +58,11 @@ class ChatRoom extends ImmutablePureComponent { componentDidUpdate(prevProps) { const markReadConditions = [ - () => this.props.chat !== undefined, + () => this.props.chat, () => this.props.chat.get('unread') > 0, ]; - if (markReadConditions.every(c => c() === true)) + if (markReadConditions.every(c => c())) this.markRead(); }