File tree Expand file tree Collapse file tree
src/api/integrations/channel/whatsapp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1092,10 +1092,6 @@ export class BaileysStartupService extends ChannelStartupService {
10921092 const filteredContacts = contacts . filter ( ( c ) => ! ! c . notify || ! ! c . name ) ;
10931093 this . historySyncContactCount += filteredContacts . length ;
10941094
1095- await this . contactHandle [ 'contacts.upsert' ] (
1096- filteredContacts . map ( ( c ) => ( { id : c . id , name : c . name ?? c . notify } ) ) ,
1097- ) ;
1098-
10991095 if ( progress === 100 ) {
11001096 this . sendDataWebhook ( Events . MESSAGING_HISTORY_SET , {
11011097 messageCount : this . historySyncMessageCount ,
@@ -1109,6 +1105,10 @@ export class BaileysStartupService extends ChannelStartupService {
11091105 this . historySyncLastProgress = - 1 ;
11101106 }
11111107
1108+ await this . contactHandle [ 'contacts.upsert' ] (
1109+ filteredContacts . map ( ( c ) => ( { id : c . id , name : c . name ?? c . notify } ) ) ,
1110+ ) ;
1111+
11121112 contacts = undefined ;
11131113 messages = undefined ;
11141114 chats = undefined ;
You can’t perform that action at this time.
0 commit comments