Skip to content

Commit

Permalink
[#8624] Disable stickers in testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
flexsurfer committed Jul 24, 2019
1 parent f0269bc commit 209515e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/status_im/ui/screens/chat/input/input.cljs
Expand Up @@ -178,6 +178,7 @@

(defview input-container []
(letsubs [margin [:chats/input-margin]
network [:get-network]
{:keys [input-text]} [:chats/current-chat]
result-box [:chats/current-chat-ui-prop :result-box]
show-stickers? [:chats/current-chat-ui-prop :show-stickers?]
Expand All @@ -201,7 +202,7 @@
[reply-message-view]
[react/view {:style style/input-container}
[input-view {:single-line-input? single-line-input? :set-text set-text :state-text state-text}]
(when input-text-empty?
(when (and input-text-empty? (string/starts-with? network "mainnet"))
[stickers/button show-stickers?])
(if input-text-empty?
[commands-button]
Expand Down

0 comments on commit 209515e

Please sign in to comment.