@@ -723,8 +723,12 @@ class Client extends EventEmitter {
723723 /** @type {GroupNotification } object does not provide enough information about this event, so a @type {Message} object is used. */
724724 const message = new Message ( this , msg ) ;
725725
726- const newId = isParticipant ? msg . recipients [ 0 ] : msg . _data . templateParams [ 1 ] ;
727- const oldId = isParticipant ? msg . author : msg . _data . templateParams [ 0 ] ;
726+ const newId = isParticipant
727+ ? msg . recipients [ 0 ]
728+ : msg . _data . templateParams [ 1 ] ;
729+ const oldId = isParticipant
730+ ? msg . author
731+ : msg . _data . templateParams [ 0 ] ;
728732
729733 /**
730734 * Emitted when a contact or a group participant changes their phone number.
@@ -1323,8 +1327,8 @@ class Client extends EventEmitter {
13231327 content instanceof Buttons ,
13241328 content instanceof List ,
13251329 Array . isArray ( content ) &&
1326- content . length > 0 &&
1327- content [ 0 ] instanceof Contact ,
1330+ content . length > 0 &&
1331+ content [ 0 ] instanceof Contact ,
13281332 ] . includes ( true )
13291333 ) {
13301334 console . warn (
@@ -1345,8 +1349,8 @@ class Client extends EventEmitter {
13451349 content instanceof Buttons ,
13461350 content instanceof List ,
13471351 Array . isArray ( content ) &&
1348- content . length > 0 &&
1349- content [ 0 ] instanceof Contact ,
1352+ content . length > 0 &&
1353+ content [ 0 ] instanceof Contact ,
13501354 ] . includes ( true )
13511355 ) {
13521356 console . warn (
@@ -1701,10 +1705,10 @@ class Client extends EventEmitter {
17011705 return ! pinnedMsgs . length
17021706 ? [ ]
17031707 : await Promise . all (
1704- pinnedMsgs . map ( ( msg ) =>
1705- window . WWebJS . getMessageModel ( msg ) ,
1706- ) ,
1707- ) ;
1708+ pinnedMsgs . map ( ( msg ) =>
1709+ window . WWebJS . getMessageModel ( msg ) ,
1710+ ) ,
1711+ ) ;
17081712 } , chatId ) ;
17091713
17101714 return pinnedMsgs . map ( ( msg ) => new Message ( this , msg ) ) ;
@@ -2006,9 +2010,9 @@ class Client extends EventEmitter {
20062010 . Chat . find ( chatId ) ) ;
20072011 action === 'MUTE'
20082012 ? await chat . mute . mute ( {
2009- expiration : unmuteDateTs ,
2010- sendDevice : true ,
2011- } )
2013+ expiration : unmuteDateTs ,
2014+ sendDevice : true ,
2015+ } )
20122016 : await chat . mute . unmute ( { sendDevice : true } ) ;
20132017 return {
20142018 isMuted : chat . mute . expiration !== 0 ,
@@ -2292,9 +2296,9 @@ class Client extends EventEmitter {
22922296 window
22932297 . require ( 'WAWebCollections' )
22942298 . Chat . get ( participant . wid ) ||
2295- ( await window
2296- . require ( 'WAWebCollections' )
2297- . Chat . find ( participant . wid ) ) ,
2299+ ( await window
2300+ . require ( 'WAWebCollections' )
2301+ . Chat . find ( participant . wid ) ) ,
22982302 createGroupResult . wid . _serialized ,
22992303 createGroupResult . subject ,
23002304 participant . invite_code ,
@@ -2559,11 +2563,11 @@ class Client extends EventEmitter {
25592563
25602564 countryCodes =
25612565 countryCodes . length === 1 &&
2562- countryCodes [ 0 ] === currentRegion
2566+ countryCodes [ 0 ] === currentRegion
25632567 ? countryCodes
25642568 : countryCodes . filter ( ( code ) =>
2565- Object . keys ( countryCodesIso ) . includes ( code ) ,
2566- ) ;
2569+ Object . keys ( countryCodesIso ) . includes ( code ) ,
2570+ ) ;
25672571
25682572 const viewTypeMapping = {
25692573 0 : 'RECOMMENDED' ,
@@ -2602,12 +2606,12 @@ class Client extends EventEmitter {
26022606
26032607 return channels
26042608 ? await Promise . all (
2605- channels . map ( ( channel ) =>
2606- window . WWebJS . getChatModel ( channel , {
2607- isChannel : true ,
2608- } ) ,
2609- ) ,
2610- )
2609+ channels . map ( ( channel ) =>
2610+ window . WWebJS . getChatModel ( channel , {
2611+ isChannel : true ,
2612+ } ) ,
2613+ ) ,
2614+ )
26112615 : [ ] ;
26122616 } ,
26132617 searchOptions ,
0 commit comments