File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3130,7 +3130,7 @@ export class WAStartupService {
31303130 const jids : {
31313131 groups : { number : string ; jid : string } [ ] ;
31323132 broadcast : { number : string ; jid : string } [ ] ;
3133- users : { number : string ; jid : string ; contact ?: string ; name ?: string } [ ] ;
3133+ users : { number : string ; jid : string ; name ?: string } [ ] ;
31343134 } = {
31353135 groups : [ ] ,
31363136 broadcast : [ ] ,
@@ -3145,7 +3145,7 @@ export class WAStartupService {
31453145 } else if ( jid === 'status@broadcast' ) {
31463146 jids . broadcast . push ( { number, jid } ) ;
31473147 } else {
3148- jids . users . push ( { number, jid, contact : jid } ) ;
3148+ jids . users . push ( { number, jid } ) ;
31493149 }
31503150 } ) ;
31513151
@@ -3181,7 +3181,7 @@ export class WAStartupService {
31813181 const query : ContactQuery = {
31823182 where : {
31833183 owner : this . instance . name ,
3184- id : user . contact ,
3184+ id : user . jid . startsWith ( '+' ) ? user . jid . substring ( 1 ) : user . jid ; ,
31853185 } ,
31863186 } ;
31873187 const contacts : ContactRaw [ ] = await this . repository . contact . find ( query ) ;
You can’t perform that action at this time.
0 commit comments