[#9766] Disable group chats for v1

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2020-01-08 10:47:57 +01:00
parent 22cec68582
commit 87c1b077e2
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
3 changed files with 12 additions and 9 deletions

View File

@ -4,7 +4,7 @@ ERC20_CONTRACT_WARNINGS=0
ETHEREUM_DEV_CLUSTER=0 ETHEREUM_DEV_CLUSTER=0
EXTENSIONS=0 EXTENSIONS=0
FLEET=eth.staging FLEET=eth.staging
GROUP_CHATS_ENABLED=1 GROUP_CHATS_ENABLED=0
LOG_LEVEL_STATUS_GO= LOG_LEVEL_STATUS_GO=
LOG_LEVEL=info LOG_LEVEL=info
MAILSERVER_CONFIRMATIONS_ENABLED=1 MAILSERVER_CONFIRMATIONS_ENABLED=1

View File

@ -7,7 +7,8 @@
[status-im.ui.components.react :as react] [status-im.ui.components.react :as react]
[status-im.utils.universal-links.core :as universal-links] [status-im.utils.universal-links.core :as universal-links]
[status-im.utils.platform :as platform] [status-im.utils.platform :as platform]
[status-im.ui.components.list-item.views :as list-item])) [status-im.ui.components.list-item.views :as list-item]
[status-im.utils.config :as config]))
(defn hide-sheet-and-dispatch [event] (defn hide-sheet-and-dispatch [event]
(re-frame/dispatch [:bottom-sheet/hide-sheet]) (re-frame/dispatch [:bottom-sheet/hide-sheet])
@ -22,12 +23,13 @@
:accessibility-label :start-1-1-chat-button :accessibility-label :start-1-1-chat-button
:icon :main-icons/one-on-one-chat :icon :main-icons/one-on-one-chat
:on-press #(hide-sheet-and-dispatch [:navigate-to :new-chat])}] :on-press #(hide-sheet-and-dispatch [:navigate-to :new-chat])}]
(when config/group-chat-enabled?
[list-item/list-item [list-item/list-item
{:theme :action {:theme :action
:title :t/start-group-chat :title :t/start-group-chat
:accessibility-label :start-group-chat-button :accessibility-label :start-group-chat-button
:icon :main-icons/group-chat :icon :main-icons/group-chat
:on-press #(hide-sheet-and-dispatch [:contact.ui/start-group-chat-pressed])}] :on-press #(hide-sheet-and-dispatch [:contact.ui/start-group-chat-pressed])}])
[list-item/list-item [list-item/list-item
{:theme :action {:theme :action
:title :t/new-public-group-chat :title :t/new-public-group-chat
@ -102,7 +104,7 @@
(def add-new (def add-new
{:content add-new-view {:content add-new-view
:content-height 280}) :content-height (if config/group-chat-enabled? 280 220)})
(def public-chat-actions (def public-chat-actions
{:content public-chat-actions-view {:content public-chat-actions-view

View File

@ -34,6 +34,7 @@
;; NOTE: only disabled in releases ;; NOTE: only disabled in releases
(def local-notifications? (enabled? (get-config :LOCAL_NOTIFICATIONS "1"))) (def local-notifications? (enabled? (get-config :LOCAL_NOTIFICATIONS "1")))
(def blank-preview? (enabled? (get-config :BLANK_PREVIEW "1"))) (def blank-preview? (enabled? (get-config :BLANK_PREVIEW "1")))
(def group-chat-enabled? (enabled? (get-config :GROUP_CHATS_ENABLED "0")))
;; CONFIG VALUES ;; CONFIG VALUES
(def log-level (def log-level