File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1080,9 +1080,19 @@ exports.LoadUtils = () => {
10801080 const contacts = window
10811081 . require ( 'WAWebCollections' )
10821082 . Contact . getModelsArray ( ) ;
1083- return contacts . map ( ( contact ) =>
1084- window . WWebJS . getContactModel ( contact ) ,
1085- ) ;
1083+ return contacts . map ( async ( contact ) => {
1084+ if ( contact . isBusiness || contact . isEnterprise ) {
1085+ const contactWid = window
1086+ . require ( 'WAWebWidFactory' )
1087+ . createWid ( contact . id ) ;
1088+ const bizProfile = await window
1089+ . require ( 'WAWebCollections' )
1090+ . BusinessProfile . find ( contactWid ) ;
1091+ bizProfile . profileOptions &&
1092+ ( contact . businessProfile = bizProfile ) ;
1093+ }
1094+ return window . WWebJS . getContactModel ( contact ) ;
1095+ } ) ;
10861096 } ;
10871097
10881098 window . WWebJS . mediaInfoToFile = ( { data, mimetype, filename } ) => {
You can’t perform that action at this time.
0 commit comments