File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/containers/MessagesPage Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ function mapToFunctions(_, {
9898 composeText,
9999 contactSearch,
100100 } ,
101+ showViewContact = true ,
101102 dateTimeFormatter = ( ...args ) => dateTimeFormat . formatDateTime ( ...args ) ,
102103 dialerRoute = '/dialer' ,
103104 onCreateContact,
@@ -109,9 +110,9 @@ function mapToFunctions(_, {
109110} ) {
110111 return {
111112 dateTimeFormatter,
112- onViewContact : onViewContact || ( ( { contact : { id, type } } ) => {
113+ onViewContact : showViewContact ? ( onViewContact || ( ( { contact : { id, type } } ) => {
113114 routerInteraction . push ( `/contacts/${ type } /${ id } ?direct=true` ) ;
114- } ) ,
115+ } ) ) : null ,
115116 onCreateContact : onCreateContact ?
116117 async ( { phoneNumber, name, entityType } ) => {
117118 const hasMatchNumber = await contactMatcher . hasMatchNumber ( {
You can’t perform that action at this time.
0 commit comments