Disable group chats in dev mode. Closes #4396

This commit is contained in:
Pedro Pombeiro 2018-05-23 15:13:52 +02:00 committed by Roman Volosovskyi
parent 09c11e9061
commit ae56eec40f
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
5 changed files with 7 additions and 7 deletions

4
.env
View File

@ -3,7 +3,7 @@ STUB_STATUS_GO=0
ETHEREUM_DEV_CLUSTER=1
MAINNET_WARNING_ENABLED=0
OFFLINE_INBOX_ENABLED=1
RPC_NETWORKS_ONLY 1
RPC_NETWORKS_ONLY=1
LOG_LEVEL=debug
LOG_LEVEL_STATUS_GO=info
QUEUE_MESSAGE_ENABLED=1
@ -16,6 +16,6 @@ TESTFAIRY_TOKEN=969f6c921cb435cea1d41d1ea3f5b247d6026d55
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
DEBUG_WEBVIEW=1
INSTABUG_SURVEYS=1
GROUP_CHATS_ENABLED=1
GROUP_CHATS_ENABLED=0
FORCE_SENT_RECEIVED_TRACKING=0
USE_SYM_KEY=0

View File

@ -16,6 +16,6 @@ DEFAULT_NETWORK=mainnet_rpc
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
DEBUG_WEBVIEW=1
INSTABUG_SURVEYS=1
GROUP_CHATS_ENABLED=1
GROUP_CHATS_ENABLED=0
FORCE_SENT_RECEIVED_TRACKING=1
USE_SYM_KEY=0

View File

@ -16,6 +16,6 @@ DEFAULT_NETWORK=mainnet_rpc
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
DEBUG_WEBVIEW=1
INSTABUG_SURVEYS=1
GROUP_CHATS_ENABLED=1
GROUP_CHATS_ENABLED=0
FORCE_SENT_RECEIVED_TRACKING=1
ADD_CUSTOM_MAILSERVERS_ENABLED=0

View File

@ -2,7 +2,7 @@ TESTFAIRY_ENABLED=0
STUB_STATUS_GO=0
ETHEREUM_DEV_CLUSTER=0
MAINNET_WARNING_ENABLED=1
RPC_NETWORKS_ONLY 1
RPC_NETWORKS_ONLY=1
OFFLINE_INBOX_ENABLED=0
LOG_LEVEL=info
LOG_LEVEL_STATUS_GO=info

View File

@ -13,7 +13,7 @@
[status-im.ui.components.status-bar.view :as status-bar]
[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
[action-button/action-button
{:label (i18n/label :t/start-new-chat)
@ -23,7 +23,7 @@
:on-press #(re-frame/dispatch [:navigate-to :new-chat])}]
[action-button/action-separator]
;; 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
{:label (i18n/label :t/start-group-chat)
:accessibility-label :start-group-chat-button