You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-24 06:02:08 +03:00
Add a space between widget name and "widget" in widget event tiles
This commit is contained in:
@ -252,7 +252,8 @@ function textForWidgetEvent(event) {
|
||||
const senderName = event.sender ? event.sender.name : event.getSender();
|
||||
const previousContent = event.getPrevContent() || {};
|
||||
const {name, type, url} = event.getContent() || {};
|
||||
const widgetName = widgetName || name || type || previousContent.type || '';
|
||||
let widgetName = widgetName || name || type || previousContent.type;
|
||||
widgetName = widgetName ? widgetName + ' ' : '';
|
||||
|
||||
// If the widget was removed, its content should be {}, but this is sufficiently
|
||||
// equivalent to that condition.
|
||||
|
Reference in New Issue
Block a user