Fixes wrong user id in search room summary item
This commit is contained in:
parent
d40c2f8c78
commit
7f3325e8df
@ -25,6 +25,6 @@ internal class MigrateSessionTo030(realm: DynamicRealm) : RealmMigrator(realm, 3
|
||||
override fun doMigrate(realm: DynamicRealm) {
|
||||
realm.schema.get("RoomSummaryEntity")
|
||||
?.addField(RoomSummaryEntityFields.DIRECT_PARENT_NAME, String::class.java)
|
||||
?.transform { it.setString(RoomSummaryEntityFields.DIRECT_PARENT_NAME, "") } // TODO: make this get the direct parent name
|
||||
?.transform { it.setString(RoomSummaryEntityFields.DIRECT_PARENT_NAME, "") }
|
||||
}
|
||||
}
|
||||
|
@ -206,7 +206,7 @@ class RoomSummaryItemFactory @Inject constructor(
|
||||
.itemClickListener { onClick?.invoke(roomSummary) }
|
||||
|
||||
private fun getSearchResultSubtitle(roomSummary: RoomSummary): String {
|
||||
val userId = roomSummary.directParentName
|
||||
val userId = roomSummary.directUserId
|
||||
val directParent = roomSummary.directParentName
|
||||
val canonicalAlias = roomSummary.canonicalAlias
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user