mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 02:15:35 +03:00
Updates getAccountDataEvents function to match it's description.
This commit is contained in:
parent
e71063222b
commit
eb90268cf5
2 changed files with 2 additions and 2 deletions
1
changelog.d/5198.buxfix
Normal file
1
changelog.d/5198.buxfix
Normal file
|
@ -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 a new issue