@@ -167,18 +167,6 @@ export class WidgetApi extends EventEmitter {
167167 this . requestCapability ( WidgetEventCapability . forStateEvent ( EventDirection . Receive , eventType , stateKey ) . raw ) ;
168168 }
169169
170- /**
171- * Requests the capability to read a given state event with optional explicit
172- * state key. It is not guaranteed to be allowed, but will be asked for if the
173- * negotiation has not already happened.
174- * @param {string } eventType The state event type to ask for.
175- * @param {string } stateKey If specified, the specific state key to request.
176- * Otherwise all state keys will be requested.
177- */
178- public requestCapabilityToReadState ( eventType : string , stateKey ?: string ) {
179- this . requestCapability ( WidgetEventCapability . forStateEvent ( EventDirection . Read , eventType , stateKey ) . raw ) ;
180- }
181-
182170 /**
183171 * Requests the capability to send a given room event. It is not guaranteed to be
184172 * allowed, but will be asked for if the negotiation has not already happened.
@@ -197,15 +185,6 @@ export class WidgetApi extends EventEmitter {
197185 this . requestCapability ( WidgetEventCapability . forRoomEvent ( EventDirection . Receive , eventType ) . raw ) ;
198186 }
199187
200- /**
201- * Requests the capability to read a given room event. It is not guaranteed to be allowed,
202- * but will be asked for if the negotiation has not already happened.
203- * @param {string } eventType The room event type to ask for.
204- */
205- public requestCapabilityToReadEvent ( eventType : string ) {
206- this . requestCapability ( WidgetEventCapability . forRoomEvent ( EventDirection . Read , eventType ) . raw ) ;
207- }
208-
209188 /**
210189 * Requests the capability to send a given message event with optional explicit
211190 * `msgtype`. It is not guaranteed to be allowed, but will be asked for if the
@@ -228,17 +207,6 @@ export class WidgetApi extends EventEmitter {
228207 this . requestCapability ( WidgetEventCapability . forRoomMessageEvent ( EventDirection . Receive , msgtype ) . raw ) ;
229208 }
230209
231- /**
232- * Requests the capability to read a given message event with optional explicit
233- * `msgtype`. It is not guaranteed to be allowed, but will be asked for if the
234- * negotiation has not already happened.
235- * @param {string } msgtype If specified, the specific msgtype to request.
236- * Otherwise all message types will be requested.
237- */
238- public requestCapabilityToReadMessage ( msgtype ?: string ) {
239- this . requestCapability ( WidgetEventCapability . forRoomMessageEvent ( EventDirection . Read , msgtype ) . raw ) ;
240- }
241-
242210 /**
243211 * Requests an OpenID Connect token from the client for the currently logged in
244212 * user. This token can be validated server-side with the federation API. Note
0 commit comments