File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
bindings/matrix-sdk-ffi/src
crates/matrix-sdk-ui/src/spaces Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,15 @@ impl SyncService {
90
90
}
91
91
} ) ) )
92
92
}
93
+
94
+ /// Force expiring both sliding sync sessions.
95
+ ///
96
+ /// This ensures that the sync service is stopped before expiring both
97
+ /// sessions. It should be used sparingly, as it will cause a restart of
98
+ /// the sessions on the server as well.
99
+ pub async fn expire_sessions ( & self ) {
100
+ self . inner . expire_sessions ( ) . await ;
101
+ }
93
102
}
94
103
95
104
#[ derive( Clone , uniffi:: Object ) ]
Original file line number Diff line number Diff line change @@ -76,13 +76,13 @@ pub enum SpaceRoomListPaginationState {
76
76
/// // spawn {
77
77
/// while let Some(pagination_state) = pagination_state_stream.next().await {
78
78
/// println!("Received pagination state update: {pagination_state:?}");
79
- /// };
79
+ /// }
80
80
/// // }
81
81
///
82
82
/// // spawn {
83
83
/// while let Some(diffs) = room_stream.next().await {
84
84
/// println!("Received room list update: {diffs:?}");
85
- /// };
85
+ /// }
86
86
/// // }
87
87
///
88
88
/// // Ask the room to load the next page
You can’t perform that action at this time.
0 commit comments