Updates getAccountDataEvents function to match it's description.
This commit is contained in:
parent
e71063222b
commit
eb90268cf5
|
@ -0,0 +1 @@
|
|||
Fix for rooms with virtual rooms not showing call status events in the timeline.
|
|
@ -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) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue