mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +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…
Add table
Reference in a new issue