@@ -725,8 +725,12 @@ class Client extends EventEmitter {
725725 /** @type {GroupNotification } object does not provide enough information about this event, so a @type {Message} object is used. */
726726 const message = new Message ( this , msg ) ;
727727
728- const newId = isParticipant ? msg . recipients [ 0 ] : msg . _data . templateParams [ 1 ] ;
729- const oldId = isParticipant ? msg . author : msg . _data . templateParams [ 0 ] ;
728+ const newId = isParticipant
729+ ? msg . recipients [ 0 ]
730+ : msg . _data . templateParams [ 1 ] ;
731+ const oldId = isParticipant
732+ ? msg . author
733+ : msg . _data . templateParams [ 0 ] ;
730734
731735 /**
732736 * Emitted when a contact or a group participant changes their phone number.
@@ -1398,8 +1402,8 @@ class Client extends EventEmitter {
13981402 content instanceof Buttons ,
13991403 content instanceof List ,
14001404 Array . isArray ( content ) &&
1401- content . length > 0 &&
1402- content [ 0 ] instanceof Contact ,
1405+ content . length > 0 &&
1406+ content [ 0 ] instanceof Contact ,
14031407 ] . includes ( true )
14041408 ) {
14051409 console . warn (
@@ -1420,8 +1424,8 @@ class Client extends EventEmitter {
14201424 content instanceof Buttons ,
14211425 content instanceof List ,
14221426 Array . isArray ( content ) &&
1423- content . length > 0 &&
1424- content [ 0 ] instanceof Contact ,
1427+ content . length > 0 &&
1428+ content [ 0 ] instanceof Contact ,
14251429 ] . includes ( true )
14261430 ) {
14271431 console . warn (
@@ -1803,10 +1807,10 @@ class Client extends EventEmitter {
18031807 return ! pinnedMsgs . length
18041808 ? [ ]
18051809 : await Promise . all (
1806- pinnedMsgs . map ( ( msg ) =>
1807- window . WWebJS . getMessageModel ( msg ) ,
1808- ) ,
1809- ) ;
1810+ pinnedMsgs . map ( ( msg ) =>
1811+ window . WWebJS . getMessageModel ( msg ) ,
1812+ ) ,
1813+ ) ;
18101814 } , chatId ) ;
18111815
18121816 return pinnedMsgs . map ( ( msg ) => new Message ( this , msg ) ) ;
@@ -2108,9 +2112,9 @@ class Client extends EventEmitter {
21082112 . Chat . find ( chatId ) ) ;
21092113 action === 'MUTE'
21102114 ? await chat . mute . mute ( {
2111- expiration : unmuteDateTs ,
2112- sendDevice : true ,
2113- } )
2115+ expiration : unmuteDateTs ,
2116+ sendDevice : true ,
2117+ } )
21142118 : await chat . mute . unmute ( { sendDevice : true } ) ;
21152119 return {
21162120 isMuted : chat . mute . expiration !== 0 ,
@@ -2394,9 +2398,9 @@ class Client extends EventEmitter {
23942398 window
23952399 . require ( 'WAWebCollections' )
23962400 . Chat . get ( participant . wid ) ||
2397- ( await window
2398- . require ( 'WAWebCollections' )
2399- . Chat . find ( participant . wid ) ) ,
2401+ ( await window
2402+ . require ( 'WAWebCollections' )
2403+ . Chat . find ( participant . wid ) ) ,
24002404 createGroupResult . wid . _serialized ,
24012405 createGroupResult . subject ,
24022406 participant . invite_code ,
@@ -2661,11 +2665,11 @@ class Client extends EventEmitter {
26612665
26622666 countryCodes =
26632667 countryCodes . length === 1 &&
2664- countryCodes [ 0 ] === currentRegion
2668+ countryCodes [ 0 ] === currentRegion
26652669 ? countryCodes
26662670 : countryCodes . filter ( ( code ) =>
2667- Object . keys ( countryCodesIso ) . includes ( code ) ,
2668- ) ;
2671+ Object . keys ( countryCodesIso ) . includes ( code ) ,
2672+ ) ;
26692673
26702674 const viewTypeMapping = {
26712675 0 : 'RECOMMENDED' ,
@@ -2704,12 +2708,12 @@ class Client extends EventEmitter {
27042708
27052709 return channels
27062710 ? await Promise . all (
2707- channels . map ( ( channel ) =>
2708- window . WWebJS . getChatModel ( channel , {
2709- isChannel : true ,
2710- } ) ,
2711- ) ,
2712- )
2711+ channels . map ( ( channel ) =>
2712+ window . WWebJS . getChatModel ( channel , {
2713+ isChannel : true ,
2714+ } ) ,
2715+ ) ,
2716+ )
27132717 : [ ] ;
27142718 } ,
27152719 searchOptions ,
0 commit comments