Merge pull request #555 from WhiskeySockets/master

fix: Fix linting
This commit is contained in:
Rajeh Taher
2023-12-18 16:46:09 +02:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -318,7 +318,7 @@ export const extractGroupMetadata = (result: BinaryNode) => {
const groupId = group.attrs.id.includes('@') ? group.attrs.id : jidEncode(group.attrs.id, 'g.us')
const eph = getBinaryNodeChild(group, 'ephemeral')?.attrs.expiration
const memberAddMode = getBinaryNodeChildString(group, 'member_add_mode') == "all_member_add"
const memberAddMode = getBinaryNodeChildString(group, 'member_add_mode') === 'all_member_add'
const metadata: GroupMetadata = {
id: groupId,
subject: group.attrs.subject,

View File

@@ -392,7 +392,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
},
}
})
} else if (child.tag === 'blocklist') {
} else if(child.tag === 'blocklist') {
const blocklists = getBinaryNodeChildren(child, 'item')
for(const { attrs } of blocklists) {