Skip to content

Commit

Permalink
Merge pull request #5 from wkarts/master-oficial-20082024
Browse files Browse the repository at this point in the history
Master oficial 20082024
  • Loading branch information
wkarts authored Aug 20, 2024
2 parents dc7af9e + c02b772 commit df8ccce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Socket/messages-recv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
const delPicture = getBinaryNodeChild(node, 'delete')

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

Expand Down
4 changes: 3 additions & 1 deletion src/Socket/messages-send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
let groupData = useCachedGroupMetadata && cachedGroupMetadata ? await cachedGroupMetadata(jid) : undefined
if(groupData && Array.isArray(groupData?.participants)) {
logger.trace({ jid, participants: groupData.participants.length }, 'using cached group metadata')
} else {
} else if(!isStatus) {
groupData = await groupMetadata(jid)
}

Expand Down Expand Up @@ -659,6 +659,8 @@ export const makeMessagesSocket = (config: SocketConfig) => {
waUploadToServer,
fetchPrivacySettings,
sendPeerDataOperationMessage,
createParticipantNodes,
getUSyncDevices,
updateMediaMessage: async(message: proto.IWebMessageInfo) => {
const content = assertMediaContent(message.message)
const mediaKey = content.mediaKey!
Expand Down

0 comments on commit df8ccce

Please sign in to comment.