File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1919
2020import React , { useEffect , useRef , useState } from 'react' ;
2121
22+ import { ConversationProtocol } from '@wireapp/api-client/lib/conversation' ;
2223import cx from 'classnames' ;
2324import { container } from 'tsyringe' ;
2425
@@ -89,7 +90,7 @@ const StartUI: React.FC<StartUIProps> = ({
8990
9091 const actions = mainViewModel . actions ;
9192 const isTeam = teamState . isTeam ( ) ;
92- const isMLSEnabled = teamState . isMLSEnabled ( ) ;
93+ const defaultProtocol = teamState . teamFeatures ( ) ?. mls ?. config . defaultProtocol ;
9394
9495 const [ searchQuery , setSearchQuery ] = useState ( '' ) ;
9596 const [ activeTab , setActiveTab ] = useState ( Tabs . PEOPLE ) ;
@@ -149,7 +150,7 @@ const StartUI: React.FC<StartUIProps> = ({
149150 forceDark
150151 />
151152 </ div >
152- { isTeam && canChatWithServices ( ) && ! isMLSEnabled && (
153+ { isTeam && canChatWithServices ( ) && defaultProtocol != ConversationProtocol . MLS && (
153154 < ul className = "start-ui-list-tabs" >
154155 < li className = { `start-ui-list-tab ${ activeTab === Tabs . PEOPLE ? 'active' : '' } ` } >
155156 < button
You can’t perform that action at this time.
0 commit comments