Skip to content

Commit

Permalink
Merge branch 'openqrnch/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
poljar committed Jun 19, 2023
2 parents 6d4874e + 75cf572 commit 7c393d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions crates/matrix-sdk-ui/src/room_list/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ impl State {
FirstRooms => (AllRooms, Actions::first_rooms_are_loaded()),
AllRooms => (CarryOn, Actions::none()),
CarryOn => (CarryOn, Actions::none()),
// If the state was `Terminated`, the next state is calculated again, because it means the
// sync has been restarted. In this case, let's jump back on the previous state that led
// to the termination. No action is required in this scenario.
// If the state was `Terminated`, the next state is calculated again, because it means
// the sync has been restarted. In this case, let's jump back on the
// previous state that led to the termination. No action is required in this
// scenario.
Terminated { from: previous_state } => {
match previous_state.as_ref() {
state @ Init | state @ FirstRooms => {
Expand Down
12 changes: 6 additions & 6 deletions crates/matrix-sdk/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2345,12 +2345,12 @@ impl Client {
///
/// * `callback` - A callback that will be called every time after a
/// response has been received, failure or not. The callback returns a
/// `Result<LoopCtrl, Error>, too. When returning `Ok(LoopCtrl::Continue)`
/// the sync will continue, if the callback returns `Ok(LoopCtrl::Break)`
/// the sync will be stopped and the function returns `Ok(())`. In case
/// the callback can't handle the `Error` or has a different malfunction,
/// it can return an `Err(Error)`, which results in the sync ending and
/// the `Err(Error)` being returned.
/// `Result<LoopCtrl, Error>`, too. When returning
/// `Ok(LoopCtrl::Continue)` the sync will continue, if the callback
/// returns `Ok(LoopCtrl::Break)` the sync will be stopped and the
/// function returns `Ok(())`. In case the callback can't handle the
/// `Error` or has a different malfunction, it can return an `Err(Error)`,
/// which results in the sync ending and the `Err(Error)` being returned.
///
/// # Return
/// The sync runs until an error occurs that the callback can't handle or
Expand Down

0 comments on commit 7c393d7

Please sign in to comment.