mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Feat: add authors who perform participant updates
This commit is contained in:
@@ -279,7 +279,7 @@ const processMessage = async(
|
||||
//let actor = whatsappID (message.participant)
|
||||
let participants: string[]
|
||||
const emitParticipantsUpdate = (action: ParticipantAction) => (
|
||||
ev.emit('group-participants.update', { id: jid, participants, action })
|
||||
ev.emit('group-participants.update', { id: jid, author: message.participant!, participants, action })
|
||||
)
|
||||
const emitGroupUpdate = (update: Partial<GroupMetadata>) => {
|
||||
ev.emit('groups.update', [{ id: jid, ...update }])
|
||||
|
||||
Reference in New Issue
Block a user