Skip to content

Commit

Permalink
fix: Added jid of people who added to the group (#223)
Browse files Browse the repository at this point in the history
Co-authored-by: DeveloperNewton <[email protected]>
Co-authored-by: Edgard <[email protected]>
  • Loading branch information
3 people authored Jul 8, 2023
1 parent 1ef0ab0 commit c2d88fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Socket/messages-recv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
2 changes: 2 additions & 0 deletions src/Types/GroupMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export interface GroupMetadata {
participants: GroupParticipant[]
ephemeralDuration?: number
inviteCode?: string
/** the person who added you */
author?: string
}


Expand Down

0 comments on commit c2d88fd

Please sign in to comment.