Fix broken API changes: use Room.latestEvent, which will keep its name, but it'll be using the logic previously in Room.newLatestEvent
This commit is contained in:
parent
67dee7bb5f
commit
27cb88d88e
3 changed files with 4 additions and 11 deletions
|
|
@ -24,7 +24,7 @@ class RoomSummaryFactory(
|
|||
) {
|
||||
suspend fun create(room: Room): RoomSummary {
|
||||
val roomInfo = room.roomInfo().let(roomInfoMapper::map)
|
||||
val latestEvent = room.newLatestEvent().use { event ->
|
||||
val latestEvent = room.latestEvent().use { event ->
|
||||
when (event) {
|
||||
is RustLatestEventValue.None -> LatestEventValue.None
|
||||
is RustLatestEventValue.Local -> LatestEventValue.Local(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue