Skip to content

Commit da7e3a8

Browse files
ricardogarimggazzo
authored andcommitted
chore: save invite stripped events as unsigned.invite_room_state
1 parent 192a6f7 commit da7e3a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/federation-sdk/src/services/invite.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ export class InviteService {
228228

229229
await this.stateService.signEvent(inviteEvent);
230230

231+
// we have no specific structure to store the invite_room_state received on the invite route,
232+
// so we store it in the unsigned section of the invite event.
233+
inviteEvent.event.unsigned.invite_room_state = strippedStateEvents;
234+
231235
// check if we are already in the room, if so we can handlePdu because we have the state and should save
232236
// the invite in the state as well
233237
const createEvent = await this.eventRepository.findByRoomIdAndType(

0 commit comments

Comments
 (0)