Skip to content

Commit

Permalink
Merge branch 'send_read+jtb' of https://github.com/alanpoon/robrix in…
Browse files Browse the repository at this point in the history
…to send_read+jtb
  • Loading branch information
alanpoon committed Dec 30, 2024
2 parents 30b6af1 + 82ed3c5 commit 1cb9524
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sliding_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,10 @@ async fn async_worker(
};

let _get_fully_read_event_task = Handle::current().spawn(async move {
async fn fetch_fully_read_event(room: &Room, room_id: &OwnedRoomId) ->
Result<(OwnedEventId, MilliSecondsSinceUnixEpoch), anyhow::Error> {
async fn fetch_fully_read_event(
room: &Room,
room_id: &OwnedRoomId,
) -> Result<(OwnedEventId, MilliSecondsSinceUnixEpoch), anyhow::Error> {
let fully_read_event = room
.account_data_static::<FullyReadEventContent>().await?
.and_then(|f| f.deserialize().ok())
Expand Down

0 comments on commit 1cb9524

Please sign in to comment.