From d0c471eef28cf426f047ee56170aeca41eb95c19 Mon Sep 17 00:00:00 2001 From: Stepan Lusnikov Date: Wed, 18 Apr 2018 12:30:32 +0800 Subject: [PATCH] Use simple-toolbar in console chat Signed-off-by: Andrey Shovkoplyas --- src/status_im/chat/screen.cljs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/status_im/chat/screen.cljs b/src/status_im/chat/screen.cljs index cf16da02ac..30db4ecd87 100644 --- a/src/status_im/chat/screen.cljs +++ b/src/status_im/chat/screen.cljs @@ -53,14 +53,15 @@ (letsubs [{:keys [group-chat name chat-id contacts]} [:get-current-chat]] [react/view [status-bar/status-bar] - [toolbar/platform-agnostic-toolbar {} - toolbar/nav-back-count - [toolbar-content/toolbar-content-view] - (when (not= chat-id constants/console-chat-id) + (if (= chat-id constants/console-chat-id) + [toolbar/simple-toolbar name] + [toolbar/platform-agnostic-toolbar {} + toolbar/nav-back-count + [toolbar-content/toolbar-content-view] [toolbar/actions [{:icon :icons/options :icon-opts {:color :black :accessibility-label :chat-menu-button} - :handler #(on-options chat-id name group-chat public?)}]])] + :handler #(on-options chat-id name group-chat public?)}]]]) (when-not (or public? group-chat) [add-contact-bar (first contacts)])])) (defmulti message-row (fn [{{:keys [type]} :row}] type))