File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ export interface MSC2346Content extends MappingInfo {
3535 bridgebot : string ;
3636}
3737
38+ export interface InitialEvent {
39+ type : string ,
40+ content : Record < string , unknown > ,
41+ state_key : string ,
42+ }
43+
3844interface Opts < BridgeMappingInfo > {
3945 /**
4046 * The name of the bridge implementation, ideally in Java package naming format:
@@ -110,11 +116,11 @@ export class BridgeInfoStateSyncer<BridgeMappingInfo> {
110116 }
111117 }
112118
113- public async createInitialState ( roomId : string , bridgeMappingInfo : BridgeMappingInfo ) {
119+ public async createInitialState ( roomId : string , bridgeMappingInfo : BridgeMappingInfo ) : Promise < InitialEvent > {
114120 const mapping = await this . opts . getMapping ( roomId , bridgeMappingInfo ) ;
115121 return {
116122 type : BridgeInfoStateSyncer . EventType ,
117- content : this . createBridgeInfoContent ( mapping ) ,
123+ content : this . createBridgeInfoContent ( mapping ) as unknown as Record < string , unknown > ,
118124 state_key : this . createStateKey ( mapping ) ,
119125 } ;
120126 }
You can’t perform that action at this time.
0 commit comments