fix: no new msg notifications after opening chat modal [NATIVE]

call TOGGLE_CHAT action when chat modal is closed to correctly update chat isOpen state
This commit is contained in:
tombrown86 2020-07-23 10:42:19 +01:00 committed by Saúl Ibarra Corretgé
parent 1c3cf325cb
commit 4161e7bfe1
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,9 @@ class Chat extends AbstractChat<Props> {
headerProps = {{
headerLabelKey: 'chat.title'
}}
modalId = { CHAT_VIEW_MODAL_ID }>
modalId = { CHAT_VIEW_MODAL_ID }
onClose = { this.props._onToggleChat }>
<MessageContainer messages = { this.props._messages } />
<MessageRecipient />
<ChatInputBar onSend = { this.props._onSendMessage } />