Updates getAccountDataEvents function to match it's description.

This commit is contained in:
David Langley 2022-02-10 10:30:47 +00:00
parent e71063222b
commit eb90268cf5
2 changed files with 2 additions and 2 deletions

1
changelog.d/5198.buxfix Normal file
View File

@ -0,0 +1 @@
Fix for rooms with virtual rooms not showing call status events in the timeline.

View File

@ -54,8 +54,7 @@ internal class RoomAccountDataDataSource @Inject constructor(@SessionDatabase pr
*/
fun getAccountDataEvents(roomId: String?, types: Set<String>): List<RoomAccountDataEvent> {
return realmSessionProvider.withRealm { realm ->
val roomEntity = buildRoomQuery(realm, roomId, types).findFirst() ?: return@withRealm emptyList()
roomEntity.accountDataEvents(types)
buildRoomQuery(realm, roomId, types).findAll().flatMap { it.accountDataEvents(types) }
}
}