Fix a new bug

This commit is contained in:
Benoit Marty 2021-02-05 13:25:58 +01:00
parent 94ea7d322d
commit 6ecd63bf5d

View file

@ -70,7 +70,7 @@ internal class WidgetFactory @Inject constructor(private val userDataSource: Use
var computedUrl = url ?: return null var computedUrl = url ?: return null
val myUser = userDataSource.getUser(userId) val myUser = userDataSource.getUser(userId)
val keyValue = data.mapKeys { "\$$it" }.toMutableMap() val keyValue = data.mapKeys { "\$${it.key}" }.toMutableMap()
keyValue[WIDGET_PATTERN_MATRIX_USER_ID] = userId keyValue[WIDGET_PATTERN_MATRIX_USER_ID] = userId
keyValue[WIDGET_PATTERN_MATRIX_DISPLAY_NAME] = myUser?.getBestName() ?: userId keyValue[WIDGET_PATTERN_MATRIX_DISPLAY_NAME] = myUser?.getBestName() ?: userId