diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index fd0bf9c..a2703ba 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -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': diff --git a/src/Types/GroupMetadata.ts b/src/Types/GroupMetadata.ts index 853a49f..19c5665 100644 --- a/src/Types/GroupMetadata.ts +++ b/src/Types/GroupMetadata.ts @@ -26,6 +26,8 @@ export interface GroupMetadata { participants: GroupParticipant[] ephemeralDuration?: number inviteCode?: string + /** the person who added you */ + author?: string }