mirror of
https://github.com/element-hq/element-web
synced 2024-10-26 04:35:55 +03:00
Add comment
This commit is contained in:
parent
6c37a9a3af
commit
1bba1f0fa6
1 changed files with 2 additions and 0 deletions
|
@ -257,6 +257,8 @@ function textForWidgetEvent(event) {
|
||||||
// Apply sentence case
|
// Apply sentence case
|
||||||
widgetName = widgetName ? widgetName[0].toUpperCase() + widgetName.slice(1).toLowerCase() + ' ' : '';
|
widgetName = widgetName ? widgetName[0].toUpperCase() + widgetName.slice(1).toLowerCase() + ' ' : '';
|
||||||
|
|
||||||
|
// If the widget was removed, its content should be {}, but this is sufficiently
|
||||||
|
// equivalent to that condition.
|
||||||
if (url) {
|
if (url) {
|
||||||
return _t('%(senderName)s added a %(widgetName)swidget', {
|
return _t('%(senderName)s added a %(widgetName)swidget', {
|
||||||
senderName, widgetName,
|
senderName, widgetName,
|
||||||
|
|
Loading…
Reference in a new issue