mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-05 13:37:36 +01:00
Updates getAccountDataEvents function to match it's description.
This commit is contained in:
parent
e71063222b
commit
eb90268cf5
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…
x
Reference in New Issue
Block a user