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:
programadorbob
2023-07-08 18:32:58 -03:00
committed by GitHub
parent 1ef0ab01aa
commit c2d88fddc6
2 changed files with 6 additions and 1 deletions

View File

@@ -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':

View File

@@ -26,6 +26,8 @@ export interface GroupMetadata {
participants: GroupParticipant[]
ephemeralDuration?: number
inviteCode?: string
/** the person who added you */
author?: string
}