Dont try to show current chat if nil
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
parent
22167db7a2
commit
9adffeb55f
|
@ -90,6 +90,7 @@
|
||||||
editing? [:get :group-chat-profile/editing?]
|
editing? [:get :group-chat-profile/editing?]
|
||||||
changed-chat [:get :group-chat-profile/profile]
|
changed-chat [:get :group-chat-profile/profile]
|
||||||
current-pk [:account/public-key]]
|
current-pk [:account/public-key]]
|
||||||
|
(when current-chat
|
||||||
(let [shown-chat (merge current-chat changed-chat)
|
(let [shown-chat (merge current-chat changed-chat)
|
||||||
admin? (admins current-pk)]
|
admin? (admins current-pk)]
|
||||||
[react/view profile.components.styles/profile
|
[react/view profile.components.styles/profile
|
||||||
|
@ -110,4 +111,4 @@
|
||||||
:action-label-style styles/action-label
|
:action-label-style styles/action-label
|
||||||
:action-separator-style styles/action-separator
|
:action-separator-style styles/action-separator
|
||||||
:icon-opts styles/action-icon-opts}]
|
:icon-opts styles/action-icon-opts}]
|
||||||
[members-list chat-id admin? (first admins) current-pk]]]])))
|
[members-list chat-id admin? (first admins) current-pk]]]]))))
|
||||||
|
|
Loading…
Reference in New Issue