request send message capability
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 39s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 39s
Details
This commit is contained in:
parent
9403e817b0
commit
d09a46c292
|
@ -264,14 +264,14 @@ function Widget() {
|
|||
|
||||
// widgetApi.current.requestCapability(MatrixCapabilities.AlwaysOnScreen);
|
||||
|
||||
// widgetApi.current.updateRequestedCapabilities();
|
||||
widgetApi.current.requestCapabilities([
|
||||
WidgetEventCapability.forRoomEvent(
|
||||
EventDirection.Send,
|
||||
'm.message',
|
||||
),
|
||||
]);
|
||||
|
||||
// widgetApi.current.requestCapabilities([
|
||||
// WidgetEventCapability.forRoomEvent(
|
||||
// EventDirection.Send,
|
||||
// 'm.message',
|
||||
// ),
|
||||
// ]);
|
||||
widgetApi.current.updateRequestedCapabilities();
|
||||
|
||||
widgetApi.current.on('ready', (e) => {
|
||||
console.log('WIDGET READY', e);
|
||||
|
@ -368,12 +368,12 @@ function Widget() {
|
|||
|
||||
// TODO: Sign and send a message to the forum-api bot / to a room in matrix
|
||||
const registerMatrixIdentity = async () => {
|
||||
await widgetApi.current.requestCapabilities([
|
||||
WidgetEventCapability.forRoomEvent(
|
||||
EventDirection.Send,
|
||||
'm.message',
|
||||
),
|
||||
]);
|
||||
// await widgetApi.current.requestCapabilities([
|
||||
// WidgetEventCapability.forRoomEvent(
|
||||
// EventDirection.Send,
|
||||
// 'm.message',
|
||||
// ),
|
||||
// ]);
|
||||
await widgetApi.current.sendRoomEvent('m.message', 'test message', '!HMoNkuTRLqQGhhlMNO:matrix.dgov.io');
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue