1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Render Jitsi widget state events in a more obvious way

A clear improvement to this would be to include join/leave buttons in the tiles, however this is currently deferred.
This commit is contained in:
Travis Ralston
2020-09-16 12:38:47 -06:00
parent 4db9ac16b5
commit b4af0140d4
6 changed files with 152 additions and 6 deletions

View File

@@ -476,10 +476,6 @@ function textForWidgetEvent(event) {
const {name: prevName, type: prevType, url: prevUrl} = event.getPrevContent();
const {name, type, url} = event.getContent() || {};
if (WidgetType.JITSI.matches(type) || WidgetType.JITSI.matches(prevType)) {
return textForJitsiWidgetEvent(event, senderName, url, prevUrl);
}
let widgetName = name || prevName || type || prevType || '';
// Apply sentence case to widget name
if (widgetName && widgetName.length > 0) {