-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ffi): Remove
RoomInfo::latest_event
.
This patch removes `RoomInfo::latest_event`. To get the latest event, one has to use `RoomListItem::latest_event` because it supports local events and remote events. It was supposed to be the case of `Room::room_info` too, but only when the method was called: Once the `RoomInfo` was created, the latest event inside `RoomInfo` was static, not dynamic. Also, this code wasn't tested contrary to `RoomListItem::latest_event` which uses `matrix_sdk_ui::room_list_service::Room::latest_event` which is itself tested.
- Loading branch information
Showing
3 changed files
with
5 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters