@@ -38,7 +38,7 @@ import {
38
38
import { IGroupCallRoomMemberState , IGroupCallRoomState } from "../webrtc/groupCall.ts" ;
39
39
import { MSC3089EventContent } from "../models/MSC3089Branch.ts" ;
40
40
import { M_BEACON , M_BEACON_INFO , MBeaconEventContent , MBeaconInfoEventContent } from "./beacon.ts" ;
41
- import { XOR } from "./common.ts" ;
41
+ import { EmptyObject } from "./common.ts" ;
42
42
import { ReactionEventContent , RoomMessageEventContent , StickerEventContent } from "./events.ts" ;
43
43
import {
44
44
MCallAnswer ,
@@ -337,7 +337,7 @@ export interface StateEvents {
337
337
[ EventType . RoomJoinRules ] : RoomJoinRulesEventContent ;
338
338
[ EventType . RoomMember ] : RoomMemberEventContent ;
339
339
// XXX: Spec says this event has 3 required fields but kicking such an invitation requires sending `{}`
340
- [ EventType . RoomThirdPartyInvite ] : XOR < RoomThirdPartyInviteEventContent , { } > ;
340
+ [ EventType . RoomThirdPartyInvite ] : RoomThirdPartyInviteEventContent | EmptyObject ;
341
341
[ EventType . RoomPowerLevels ] : RoomPowerLevelsEventContent ;
342
342
[ EventType . RoomName ] : RoomNameEventContent ;
343
343
[ EventType . RoomTopic ] : RoomTopicEventContent ;
@@ -351,13 +351,13 @@ export interface StateEvents {
351
351
[ EventType . SpaceChild ] : SpaceChildEventContent ;
352
352
[ EventType . SpaceParent ] : SpaceParentEventContent ;
353
353
354
- [ EventType . PolicyRuleUser ] : XOR < PolicyRuleEventContent , { } > ;
355
- [ EventType . PolicyRuleRoom ] : XOR < PolicyRuleEventContent , { } > ;
356
- [ EventType . PolicyRuleServer ] : XOR < PolicyRuleEventContent , { } > ;
354
+ [ EventType . PolicyRuleUser ] : PolicyRuleEventContent | EmptyObject ;
355
+ [ EventType . PolicyRuleRoom ] : PolicyRuleEventContent | EmptyObject ;
356
+ [ EventType . PolicyRuleServer ] : PolicyRuleEventContent | EmptyObject ;
357
357
358
358
// MSC3401
359
359
[ EventType . GroupCallPrefix ] : IGroupCallRoomState ;
360
- [ EventType . GroupCallMemberPrefix ] : XOR < IGroupCallRoomMemberState , XOR < SessionMembershipData , { } > > ;
360
+ [ EventType . GroupCallMemberPrefix ] : IGroupCallRoomMemberState | SessionMembershipData | EmptyObject ;
361
361
362
362
// MSC3089
363
363
[ UNSTABLE_MSC3089_BRANCH . name ] : MSC3089EventContent ;
@@ -372,7 +372,7 @@ export interface StateEvents {
372
372
export interface AccountDataEvents extends SecretStorageAccountDataEvents {
373
373
[ EventType . PushRules ] : IPushRules ;
374
374
[ EventType . Direct ] : { [ userId : string ] : string [ ] } ;
375
- [ EventType . IgnoredUserList ] : { [ userId : string ] : { } } ;
375
+ [ EventType . IgnoredUserList ] : { ignored_users : { [ userId : string ] : EmptyObject } } ;
376
376
"m.secret_storage.default_key" : { key : string } ;
377
377
// Flag set by the rust SDK (Element X) and also used by us to mark that the user opted out of backup
378
378
// (I don't know why it's m.org.matrix...)
0 commit comments