Make sure validation-messages are nil when navigating to a chat

This commit is contained in:
Julien Eluard 2017-07-18 01:01:53 +02:00 committed by Roman Volosovskyi
parent 909f697efd
commit adc55d6fb9
1 changed files with 2 additions and 0 deletions

View File

@ -274,6 +274,8 @@
{:chat-id chat-id
:function :init
:context {:from current-account-id}}))]
; Reset validation messages, if any
(dispatch [:set-chat-ui-props {:validation-messages nil}])
(dispatch [:load-requests! chat-id])
;; todo rewrite this. temporary fix for https://github.com/status-im/status-react/issues/607
#_(dispatch [:load-commands! chat-id])