@@ -20,12 +20,13 @@ import { isNumber, removeHiddenChars } from "../utils";
20
20
import { EventType , UNSTABLE_MSC2716_MARKER } from "../@types/event" ;
21
21
import { IEvent , MatrixEvent , MatrixEventEvent } from "./event" ;
22
22
import { MatrixClient } from "../client" ;
23
- import { GuestAccess , HistoryVisibility , IJoinRuleEventContent , JoinRule } from "../@types/partials" ;
23
+ import { GuestAccess , HistoryVisibility , JoinRule } from "../@types/partials" ;
24
24
import { TypedEventEmitter } from "./typed-event-emitter" ;
25
25
import { Beacon , BeaconEvent , BeaconEventHandlerMap , getBeaconInfoIdentifier , BeaconIdentifier } from "./beacon" ;
26
26
import { TypedReEmitter } from "../ReEmitter" ;
27
27
import { M_BEACON , M_BEACON_INFO } from "../@types/beacon" ;
28
28
import { KnownMembership } from "../@types/membership" ;
29
+ import { RoomJoinRulesEventContent } from "../@types/state_events" ;
29
30
30
31
export interface IMarkerFoundOptions {
31
32
/** Whether the timeline was empty before the marker event arrived in the
@@ -962,7 +963,7 @@ export class RoomState extends TypedEventEmitter<EmittedEvents, EventHandlerMap>
962
963
*/
963
964
public getJoinRule ( ) : JoinRule {
964
965
const joinRuleEvent = this . getStateEvents ( EventType . RoomJoinRules , "" ) ;
965
- const joinRuleContent : Partial < IJoinRuleEventContent > = joinRuleEvent ?. getContent ( ) ?? { } ;
966
+ const joinRuleContent : Partial < RoomJoinRulesEventContent > = joinRuleEvent ?. getContent ( ) ?? { } ;
966
967
return joinRuleContent [ "join_rule" ] || JoinRule . Invite ;
967
968
}
968
969
0 commit comments