@@ -724,8 +724,12 @@ class Client extends EventEmitter {
724724 /** @type {GroupNotification } object does not provide enough information about this event, so a @type {Message} object is used. */
725725 const message = new Message ( this , msg ) ;
726726
727- const newId = isParticipant ? msg . recipients [ 0 ] : msg . _data . templateParams [ 1 ] ;
728- const oldId = isParticipant ? msg . author : msg . _data . templateParams [ 0 ] ;
727+ const newId = isParticipant
728+ ? msg . recipients [ 0 ]
729+ : msg . _data . templateParams [ 1 ] ;
730+ const oldId = isParticipant
731+ ? msg . author
732+ : msg . _data . templateParams [ 0 ] ;
729733
730734 /**
731735 * Emitted when a contact or a group participant changes their phone number.
@@ -1397,8 +1401,8 @@ class Client extends EventEmitter {
13971401 content instanceof Buttons ,
13981402 content instanceof List ,
13991403 Array . isArray ( content ) &&
1400- content . length > 0 &&
1401- content [ 0 ] instanceof Contact ,
1404+ content . length > 0 &&
1405+ content [ 0 ] instanceof Contact ,
14021406 ] . includes ( true )
14031407 ) {
14041408 console . warn (
@@ -1419,8 +1423,8 @@ class Client extends EventEmitter {
14191423 content instanceof Buttons ,
14201424 content instanceof List ,
14211425 Array . isArray ( content ) &&
1422- content . length > 0 &&
1423- content [ 0 ] instanceof Contact ,
1426+ content . length > 0 &&
1427+ content [ 0 ] instanceof Contact ,
14241428 ] . includes ( true )
14251429 ) {
14261430 console . warn (
@@ -1802,10 +1806,10 @@ class Client extends EventEmitter {
18021806 return ! pinnedMsgs . length
18031807 ? [ ]
18041808 : await Promise . all (
1805- pinnedMsgs . map ( ( msg ) =>
1806- window . WWebJS . getMessageModel ( msg ) ,
1807- ) ,
1808- ) ;
1809+ pinnedMsgs . map ( ( msg ) =>
1810+ window . WWebJS . getMessageModel ( msg ) ,
1811+ ) ,
1812+ ) ;
18091813 } , chatId ) ;
18101814
18111815 return pinnedMsgs . map ( ( msg ) => new Message ( this , msg ) ) ;
@@ -2107,9 +2111,9 @@ class Client extends EventEmitter {
21072111 . Chat . find ( chatId ) ) ;
21082112 action === 'MUTE'
21092113 ? await chat . mute . mute ( {
2110- expiration : unmuteDateTs ,
2111- sendDevice : true ,
2112- } )
2114+ expiration : unmuteDateTs ,
2115+ sendDevice : true ,
2116+ } )
21132117 : await chat . mute . unmute ( { sendDevice : true } ) ;
21142118 return {
21152119 isMuted : chat . mute . expiration !== 0 ,
@@ -2393,9 +2397,9 @@ class Client extends EventEmitter {
23932397 window
23942398 . require ( 'WAWebCollections' )
23952399 . Chat . get ( participant . wid ) ||
2396- ( await window
2397- . require ( 'WAWebCollections' )
2398- . Chat . find ( participant . wid ) ) ,
2400+ ( await window
2401+ . require ( 'WAWebCollections' )
2402+ . Chat . find ( participant . wid ) ) ,
23992403 createGroupResult . wid . _serialized ,
24002404 createGroupResult . subject ,
24012405 participant . invite_code ,
@@ -2660,11 +2664,11 @@ class Client extends EventEmitter {
26602664
26612665 countryCodes =
26622666 countryCodes . length === 1 &&
2663- countryCodes [ 0 ] === currentRegion
2667+ countryCodes [ 0 ] === currentRegion
26642668 ? countryCodes
26652669 : countryCodes . filter ( ( code ) =>
2666- Object . keys ( countryCodesIso ) . includes ( code ) ,
2667- ) ;
2670+ Object . keys ( countryCodesIso ) . includes ( code ) ,
2671+ ) ;
26682672
26692673 const viewTypeMapping = {
26702674 0 : 'RECOMMENDED' ,
@@ -2703,12 +2707,12 @@ class Client extends EventEmitter {
27032707
27042708 return channels
27052709 ? await Promise . all (
2706- channels . map ( ( channel ) =>
2707- window . WWebJS . getChatModel ( channel , {
2708- isChannel : true ,
2709- } ) ,
2710- ) ,
2711- )
2710+ channels . map ( ( channel ) =>
2711+ window . WWebJS . getChatModel ( channel , {
2712+ isChannel : true ,
2713+ } ) ,
2714+ ) ,
2715+ )
27122716 : [ ] ;
27132717 } ,
27142718 searchOptions ,
0 commit comments