Add a custom widget API action for viewing a different room
This commit is contained in:
parent
294876f062
commit
e15041bd53
5 changed files with 89 additions and 7 deletions
|
@ -14,8 +14,17 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { IWidgetApiRequest } from "matrix-widget-api";
|
||||
|
||||
export enum ElementWidgetActions {
|
||||
ClientReady = "im.vector.ready",
|
||||
HangupCall = "im.vector.hangup",
|
||||
OpenIntegrationManager = "integration_manager_open",
|
||||
ViewRoom = "io.element.view_room",
|
||||
}
|
||||
|
||||
export interface IViewRoomApiRequest extends IWidgetApiRequest {
|
||||
data: {
|
||||
room_id: string;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue