Skip to content

Commit

Permalink
no more eslint errors!
Browse files Browse the repository at this point in the history
  • Loading branch information
codebossdev authored Aug 10, 2023
1 parent 42c5c15 commit bba34b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Socket/messages-recv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {

ev.emit('contacts.update', [{
id: jidNormalizedUser(node?.attrs?.jid) || ((setPicture || delPicture)?.attrs?.hash) || '',
imgUrl: setPicture ? 'changed' : "removed"
imgUrl: setPicture ? 'changed' : 'removed'
}])

if(isJidGroup(from)) {
Expand Down
6 changes: 3 additions & 3 deletions src/Store/make-in-memory-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ export default (

ev.on('contacts.update', async updates => {
for(const update of updates) {
let contact: Contact;
let contact: Contact
if(contacts[update.id!]) {
contact = contacts[update.id!]
} else {
const contactHashes = await Promise.all(Object.keys(contacts).map(async a => {
return (await md5(Buffer.from(a + 'WA_ADD_NOTIF', 'utf8'))).toString('base64').slice(0,3)
}));
return (await md5(Buffer.from(a + 'WA_ADD_NOTIF', 'utf8'))).toString('base64').slice(0, 3)
}))
contact = contacts[contactHashes.find(a => a === update.id) || '']
}

Expand Down

0 comments on commit bba34b0

Please sign in to comment.