Skip to content

Commit 8ff8cda

Browse files
committed
fix: tombstone event classification
1 parent 7346b3a commit 8ff8cda

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,7 @@ export class RoomService {
13771377
{
13781378
room_id: roomId,
13791379
sender: sender,
1380+
state_key: '',
13801381
content: {
13811382
body: reason,
13821383
replacement_room: replacementRoomId,

packages/room/src/types/v3-11.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ export type PduRoomTombstoneEventContent = z.infer<
730730
>;
731731

732732
const EventPduTypeRoomTombstone = z.object({
733-
...PduNoContentTimelineEventSchema,
733+
...PduNoContentEmptyStateKeyStateEventSchema,
734734
type: z.literal('m.room.tombstone'),
735735
content: PduRoomTombstoneEventContentSchema,
736736
});

0 commit comments

Comments
 (0)