Widget: avoid empty user display name
This commit is contained in:
parent
0f55291089
commit
5b3065730e
|
@ -8,7 +8,7 @@ Improvements 🙌:
|
|||
-
|
||||
|
||||
Bugfix 🐛:
|
||||
-
|
||||
- Bug in WidgetContent.computeURL() (#2767)
|
||||
|
||||
Translations 🗣:
|
||||
-
|
||||
|
|
|
@ -70,7 +70,7 @@ internal class WidgetFactory @Inject constructor(private val userDataSource: Use
|
|||
val myUser = userDataSource.getUser(userId)
|
||||
computedUrl = computedUrl
|
||||
.replace("\$matrix_user_id", userId)
|
||||
.replace("\$matrix_display_name", myUser?.displayName ?: userId)
|
||||
.replace("\$matrix_display_name", myUser?.getBestName() ?: userId)
|
||||
.replace("\$matrix_avatar_url", myUser?.avatarUrl ?: "")
|
||||
.replace("\$matrix_widget_id", widgetId)
|
||||
|
||||
|
|
Loading…
Reference in New Issue