File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
crates/matrix-sdk-ui/src/spaces Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use eyeball::{SharedObservable, Subscriber};
18
18
use futures_util:: pin_mut;
19
19
use matrix_sdk:: { Client , Error , paginators:: PaginationToken } ;
20
20
use matrix_sdk_common:: executor:: { JoinHandle , spawn} ;
21
- use ruma:: { OwnedRoomId , api:: client:: space:: get_hierarchy} ;
21
+ use ruma:: { OwnedRoomId , api:: client:: space:: get_hierarchy, uint } ;
22
22
use tracing:: error;
23
23
24
24
use crate :: spaces:: SpaceServiceRoom ;
@@ -131,6 +131,7 @@ impl SpaceServiceRoomList {
131
131
self . pagination_state . set ( SpaceServiceRoomListPaginationState :: Loading ) ;
132
132
133
133
let mut request = get_hierarchy:: v1:: Request :: new ( self . parent_space_id . clone ( ) ) ;
134
+ request. max_depth = Some ( uint ! ( 1 ) ) ;
134
135
135
136
if let PaginationToken :: HasMore ( ref token) = * self . token . lock ( ) . unwrap ( ) {
136
137
request. from = Some ( token. clone ( ) ) ;
You can’t perform that action at this time.
0 commit comments