mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Merge pull request #1318 from matrix-org/luke/fix-widget-event-name
Add a space between widget name and "widget" in widget event tiles
This commit is contained in:
commit
273abd9327
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue