Hide group chats behind flag
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
parent
c145c8a19f
commit
8dd04570e4
1
.env
1
.env
|
@ -19,3 +19,4 @@ TESTFAIRY_TOKEN=969f6c921cb435cea1d41d1ea3f5b247d6026d55
|
||||||
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
||||||
DEBUG_WEBVIEW=1
|
DEBUG_WEBVIEW=1
|
||||||
INSTABUG_SURVEYS=1
|
INSTABUG_SURVEYS=1
|
||||||
|
GROUP_CHATS_ENABLED=1
|
||||||
|
|
1
.env.e2e
1
.env.e2e
|
@ -18,3 +18,4 @@ DEFAULT_NETWORK=testnet_rpc
|
||||||
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
||||||
DEBUG_WEBVIEW=1
|
DEBUG_WEBVIEW=1
|
||||||
INSTABUG_SURVEYS=0
|
INSTABUG_SURVEYS=0
|
||||||
|
GROUP_CHATS_ENABLED=1
|
||||||
|
|
|
@ -19,3 +19,4 @@ DEFAULT_NETWORK=mainnet_rpc
|
||||||
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
||||||
DEBUG_WEBVIEW=1
|
DEBUG_WEBVIEW=1
|
||||||
INSTABUG_SURVEYS=1
|
INSTABUG_SURVEYS=1
|
||||||
|
GROUP_CHATS_ENABLED=1
|
||||||
|
|
|
@ -19,3 +19,4 @@ DEFAULT_NETWORK=testnet_rpc
|
||||||
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
||||||
DEBUG_WEBVIEW=0
|
DEBUG_WEBVIEW=0
|
||||||
INSTABUG_SURVEYS=1
|
INSTABUG_SURVEYS=1
|
||||||
|
GROUP_CHATS_ENABLED=0
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
(:require-macros [status-im.utils.views :as views])
|
(:require-macros [status-im.utils.views :as views])
|
||||||
(:require [re-frame.core :as re-frame]
|
(:require [re-frame.core :as re-frame]
|
||||||
[status-im.i18n :as i18n]
|
[status-im.i18n :as i18n]
|
||||||
|
[status-im.utils.config :as config]
|
||||||
[status-im.ui.components.action-button.action-button :as action-button]
|
[status-im.ui.components.action-button.action-button :as action-button]
|
||||||
[status-im.ui.components.action-button.styles :as action-button.styles]
|
[status-im.ui.components.action-button.styles :as action-button.styles]
|
||||||
[status-im.ui.components.colors :as colors]
|
[status-im.ui.components.colors :as colors]
|
||||||
|
@ -21,13 +22,14 @@
|
||||||
:icon-opts {:color colors/blue}
|
:icon-opts {:color colors/blue}
|
||||||
:on-press #(re-frame/dispatch [:navigate-to :new-chat])}]
|
:on-press #(re-frame/dispatch [:navigate-to :new-chat])}]
|
||||||
[action-button/action-separator]
|
[action-button/action-separator]
|
||||||
;; TODO temporary removal before everything is fixed in group chats
|
;; Hide behind flag (false by default), till everything is fixed in group chats
|
||||||
[action-button/action-button
|
(when config/group-chats-enabled?
|
||||||
{:label (i18n/label :t/start-group-chat)
|
[action-button/action-button
|
||||||
:accessibility-label :start-group-chat-button
|
{:label (i18n/label :t/start-group-chat)
|
||||||
:icon :icons/contacts
|
:accessibility-label :start-group-chat-button
|
||||||
:icon-opts {:color colors/blue}
|
:icon :icons/contacts
|
||||||
:on-press #(re-frame/dispatch [:open-contact-toggle-list :chat-group])}]
|
:icon-opts {:color colors/blue}
|
||||||
|
:on-press #(re-frame/dispatch [:open-contact-toggle-list :chat-group])}])
|
||||||
[action-button/action-separator]
|
[action-button/action-separator]
|
||||||
[action-button/action-button
|
[action-button/action-button
|
||||||
{:label (i18n/label :t/new-public-group-chat)
|
{:label (i18n/label :t/new-public-group-chat)
|
||||||
|
|
|
@ -41,3 +41,5 @@
|
||||||
|
|
||||||
(def pow-target (js/parseFloat (get-config :POW_TARGET "0.002")))
|
(def pow-target (js/parseFloat (get-config :POW_TARGET "0.002")))
|
||||||
(def pow-time (js/parseInt (get-config :POW_TIME "1")))
|
(def pow-time (js/parseInt (get-config :POW_TIME "1")))
|
||||||
|
|
||||||
|
(def group-chats-enabled? (enabled? (get-config :GROUP_CHATS_ENABLED)))
|
||||||
|
|
Loading…
Reference in New Issue