Wire up MSC2931 widget navigation

Fixes https://github.com/vector-im/element-web/issues/16006
**Requires https://github.com/matrix-org/matrix-widget-api/pull/27**
This commit is contained in:
Travis Ralston 2020-12-29 12:35:48 -07:00
parent 461b569278
commit 7e0cf5c783
5 changed files with 23 additions and 0 deletions

View file

@ -60,6 +60,9 @@ export class CapabilityText {
[ElementWidgetCapabilities.CanChangeViewedRoom]: {
[GENERIC_WIDGET_KIND]: _td("Change which room you're viewing"),
},
[MatrixCapabilities.MSC2931Navigate]: {
[GENERIC_WIDGET_KIND]: _td("Change which room you're viewing and use permalinks"),
},
};
private static stateSendRecvCaps: ISendRecvStaticCapText = {