[#9766] Disable group chats for v1
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
22cec68582
commit
87c1b077e2
|
@ -4,7 +4,7 @@ ERC20_CONTRACT_WARNINGS=0
|
|||
ETHEREUM_DEV_CLUSTER=0
|
||||
EXTENSIONS=0
|
||||
FLEET=eth.staging
|
||||
GROUP_CHATS_ENABLED=1
|
||||
GROUP_CHATS_ENABLED=0
|
||||
LOG_LEVEL_STATUS_GO=
|
||||
LOG_LEVEL=info
|
||||
MAILSERVER_CONFIRMATIONS_ENABLED=1
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
[status-im.ui.components.react :as react]
|
||||
[status-im.utils.universal-links.core :as universal-links]
|
||||
[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]
|
||||
(re-frame/dispatch [:bottom-sheet/hide-sheet])
|
||||
|
@ -22,12 +23,13 @@
|
|||
:accessibility-label :start-1-1-chat-button
|
||||
:icon :main-icons/one-on-one-chat
|
||||
:on-press #(hide-sheet-and-dispatch [:navigate-to :new-chat])}]
|
||||
[list-item/list-item
|
||||
{:theme :action
|
||||
:title :t/start-group-chat
|
||||
:accessibility-label :start-group-chat-button
|
||||
:icon :main-icons/group-chat
|
||||
:on-press #(hide-sheet-and-dispatch [:contact.ui/start-group-chat-pressed])}]
|
||||
(when config/group-chat-enabled?
|
||||
[list-item/list-item
|
||||
{:theme :action
|
||||
:title :t/start-group-chat
|
||||
:accessibility-label :start-group-chat-button
|
||||
:icon :main-icons/group-chat
|
||||
:on-press #(hide-sheet-and-dispatch [:contact.ui/start-group-chat-pressed])}])
|
||||
[list-item/list-item
|
||||
{:theme :action
|
||||
:title :t/new-public-group-chat
|
||||
|
@ -102,7 +104,7 @@
|
|||
|
||||
(def add-new
|
||||
{:content add-new-view
|
||||
:content-height 280})
|
||||
:content-height (if config/group-chat-enabled? 280 220)})
|
||||
|
||||
(def public-chat-actions
|
||||
{:content public-chat-actions-view
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
;; NOTE: only disabled in releases
|
||||
(def local-notifications? (enabled? (get-config :LOCAL_NOTIFICATIONS "1")))
|
||||
(def blank-preview? (enabled? (get-config :BLANK_PREVIEW "1")))
|
||||
(def group-chat-enabled? (enabled? (get-config :GROUP_CHATS_ENABLED "0")))
|
||||
|
||||
;; CONFIG VALUES
|
||||
(def log-level
|
||||
|
|
Loading…
Reference in New Issue