Disable group chats in dev mode. Closes #4396
This commit is contained in:
parent
09c11e9061
commit
ae56eec40f
4
.env
4
.env
|
@ -3,7 +3,7 @@ STUB_STATUS_GO=0
|
||||||
ETHEREUM_DEV_CLUSTER=1
|
ETHEREUM_DEV_CLUSTER=1
|
||||||
MAINNET_WARNING_ENABLED=0
|
MAINNET_WARNING_ENABLED=0
|
||||||
OFFLINE_INBOX_ENABLED=1
|
OFFLINE_INBOX_ENABLED=1
|
||||||
RPC_NETWORKS_ONLY 1
|
RPC_NETWORKS_ONLY=1
|
||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug
|
||||||
LOG_LEVEL_STATUS_GO=info
|
LOG_LEVEL_STATUS_GO=info
|
||||||
QUEUE_MESSAGE_ENABLED=1
|
QUEUE_MESSAGE_ENABLED=1
|
||||||
|
@ -16,6 +16,6 @@ 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
|
GROUP_CHATS_ENABLED=0
|
||||||
FORCE_SENT_RECEIVED_TRACKING=0
|
FORCE_SENT_RECEIVED_TRACKING=0
|
||||||
USE_SYM_KEY=0
|
USE_SYM_KEY=0
|
||||||
|
|
|
@ -16,6 +16,6 @@ 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
|
GROUP_CHATS_ENABLED=0
|
||||||
FORCE_SENT_RECEIVED_TRACKING=1
|
FORCE_SENT_RECEIVED_TRACKING=1
|
||||||
USE_SYM_KEY=0
|
USE_SYM_KEY=0
|
||||||
|
|
|
@ -16,6 +16,6 @@ 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
|
GROUP_CHATS_ENABLED=0
|
||||||
FORCE_SENT_RECEIVED_TRACKING=1
|
FORCE_SENT_RECEIVED_TRACKING=1
|
||||||
ADD_CUSTOM_MAILSERVERS_ENABLED=0
|
ADD_CUSTOM_MAILSERVERS_ENABLED=0
|
||||||
|
|
|
@ -2,7 +2,7 @@ TESTFAIRY_ENABLED=0
|
||||||
STUB_STATUS_GO=0
|
STUB_STATUS_GO=0
|
||||||
ETHEREUM_DEV_CLUSTER=0
|
ETHEREUM_DEV_CLUSTER=0
|
||||||
MAINNET_WARNING_ENABLED=1
|
MAINNET_WARNING_ENABLED=1
|
||||||
RPC_NETWORKS_ONLY 1
|
RPC_NETWORKS_ONLY=1
|
||||||
OFFLINE_INBOX_ENABLED=0
|
OFFLINE_INBOX_ENABLED=0
|
||||||
LOG_LEVEL=info
|
LOG_LEVEL=info
|
||||||
LOG_LEVEL_STATUS_GO=info
|
LOG_LEVEL_STATUS_GO=info
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
[status-im.ui.components.status-bar.view :as status-bar]
|
[status-im.ui.components.status-bar.view :as status-bar]
|
||||||
[status-im.ui.components.toolbar.view :as toolbar]))
|
[status-im.ui.components.toolbar.view :as toolbar]))
|
||||||
|
|
||||||
(defn- options-list [{:keys [address]}]
|
(defn- options-list [{:keys [address dev-mode?]}]
|
||||||
[react/view action-button.styles/actions-list
|
[react/view action-button.styles/actions-list
|
||||||
[action-button/action-button
|
[action-button/action-button
|
||||||
{:label (i18n/label :t/start-new-chat)
|
{:label (i18n/label :t/start-new-chat)
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
: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]
|
||||||
;; Hide behind flag (false by default), till everything is fixed in group chats
|
;; Hide behind flag (false by default), till everything is fixed in group chats
|
||||||
(when config/group-chats-enabled?
|
(when (or config/group-chats-enabled? dev-mode?)
|
||||||
[action-button/action-button
|
[action-button/action-button
|
||||||
{:label (i18n/label :t/start-group-chat)
|
{:label (i18n/label :t/start-group-chat)
|
||||||
:accessibility-label :start-group-chat-button
|
:accessibility-label :start-group-chat-button
|
||||||
|
|
Loading…
Reference in New Issue