mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: minor code cleanup
This commit is contained in:
@@ -57,4 +57,4 @@ export const MEDIA_PATH_MAP: { [T in MediaType]: string } = {
|
||||
|
||||
export const MEDIA_KEYS = Object.keys(MEDIA_PATH_MAP) as MediaType[]
|
||||
|
||||
export const KEY_BUNDLE_TYPE = ''
|
||||
export const KEY_BUNDLE_TYPE = Buffer.from([5])
|
||||
|
||||
@@ -680,11 +680,12 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
||||
|
||||
ev.on('connection.update', ({ connection }) => {
|
||||
if(connection === 'open') {
|
||||
sendPresenceUpdate('available')
|
||||
fetchBlocklist()
|
||||
fetchPrivacySettings()
|
||||
fetchAbt()
|
||||
fetchProps()
|
||||
fetchBlocklist()
|
||||
fetchPrivacySettings()
|
||||
|
||||
sendPresenceUpdate('available')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -401,7 +401,7 @@ export const makeSocket = ({
|
||||
{
|
||||
tag: 'remove-companion-device',
|
||||
attrs: {
|
||||
jid: jid,
|
||||
jid,
|
||||
reason: 'user_initiated'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +139,11 @@ export const configureSuccessfulPairing = (
|
||||
tag: 'pair-device-sign',
|
||||
attrs: { },
|
||||
content: [
|
||||
{ tag: 'device-identity', attrs: { 'key-index': `${keyIndex}` }, content: accountEnc }
|
||||
{
|
||||
tag: 'device-identity',
|
||||
attrs: { 'key-index': `${keyIndex}` },
|
||||
content: accountEnc
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user