mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: Added jid of people who added to the group (#223)
Co-authored-by: DeveloperNewton <116108544+DeveloperNewton@users.noreply.github.com> Co-authored-by: Edgard <edgardmessias@gmail.com>
This commit is contained in:
@@ -216,7 +216,10 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
name: metadata.subject,
|
||||
conversationTimestamp: metadata.creation,
|
||||
}])
|
||||
ev.emit('groups.upsert', [metadata])
|
||||
ev.emit('groups.upsert', [{
|
||||
...metadata,
|
||||
author: participant
|
||||
}])
|
||||
break
|
||||
case 'ephemeral':
|
||||
case 'not_ephemeral':
|
||||
|
||||
@@ -26,6 +26,8 @@ export interface GroupMetadata {
|
||||
participants: GroupParticipant[]
|
||||
ephemeralDuration?: number
|
||||
inviteCode?: string
|
||||
/** the person who added you */
|
||||
author?: string
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user