@@ -1444,29 +1444,29 @@ export class ChatwootService {
14441444 }
14451445 }
14461446
1447- if ( event === 'contacts.update' ) {
1448- this . logger . verbose ( 'event contacts.update' ) ;
1449- const data = body ;
1450-
1451- if ( data . length ) {
1452- this . logger . verbose ( 'contacts found' ) ;
1453- for ( const item of data ) {
1454- const number = item . id . split ( '@' ) [ 0 ] ;
1455- const photo = item . profilePictureUrl || null ;
1456- this . logger . verbose ( 'find contact in chatwoot' ) ;
1457- const find = await this . findContact ( instance , number ) ;
1458-
1459- if ( find ) {
1460- this . logger . verbose ( 'contact found' ) ;
1461-
1462- this . logger . verbose ( 'update contact in chatwoot' ) ;
1463- await this . updateContact ( instance , find . id , {
1464- avatar_url : photo ,
1465- } ) ;
1466- }
1467- }
1468- }
1469- }
1447+ // if (event === 'contacts.update') {
1448+ // this.logger.verbose('event contacts.update');
1449+ // const data = body;
1450+
1451+ // if (data.length) {
1452+ // this.logger.verbose('contacts found');
1453+ // for (const item of data) {
1454+ // const number = item.id.split('@')[0];
1455+ // const photo = item.profilePictureUrl || null;
1456+ // this.logger.verbose('find contact in chatwoot');
1457+ // const find = await this.findContact(instance, number);
1458+
1459+ // if (find) {
1460+ // this.logger.verbose('contact found');
1461+
1462+ // this.logger.verbose('update contact in chatwoot');
1463+ // await this.updateContact(instance, find.id, {
1464+ // avatar_url: photo,
1465+ // });
1466+ // }
1467+ // }
1468+ // }
1469+ // }
14701470
14711471 if ( event === 'qrcode.updated' ) {
14721472 this . logger . verbose ( 'event qrcode.updated' ) ;
0 commit comments