fix: jump cannot work properly when there are multi users
This commit is contained in:
parent
ccb2a23075
commit
940d3e62db
4 changed files with 17 additions and 2 deletions
|
|
@ -415,6 +415,7 @@ class ChatListController extends State<ChatList>
|
|||
);
|
||||
});
|
||||
|
||||
Matrix.of(context).setController(this);
|
||||
super.initState();
|
||||
}
|
||||
|
||||
|
|
@ -815,6 +816,14 @@ class ChatListController extends State<ChatList>
|
|||
_clientStream.add(client);
|
||||
}
|
||||
|
||||
void setActiveClientWithUserId(String name) {
|
||||
setState(() {
|
||||
activeFilter = ActiveFilter.allChats;
|
||||
_activeSpaceId = null;
|
||||
Matrix.of(context).setActiveClientWithUserId(name);
|
||||
});
|
||||
}
|
||||
|
||||
void setActiveBundle(String bundle) {
|
||||
context.go('/rooms');
|
||||
setState(() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue