mirror of
https://github.com/element-hq/element-android
synced 2024-10-22 18:56:29 +03:00
Widget: avoid empty user display name
This commit is contained in:
parent
0f55291089
commit
5b3065730e
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue