Pass filter text when clicking explore/dm prompt
This commit is contained in:
parent
a481f3bdf1
commit
d0513406ee
6 changed files with 153 additions and 128 deletions
|
@ -285,11 +285,13 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
|
|||
};
|
||||
|
||||
private onStartChat = () => {
|
||||
dis.dispatch({action: "view_create_chat"});
|
||||
const initialText = RoomListStore.instance.getFirstNameFilterCondition()?.search;
|
||||
dis.dispatch({ action: "view_create_chat", initialText });
|
||||
};
|
||||
|
||||
private onExplore = () => {
|
||||
dis.fire(Action.ViewRoomDirectory);
|
||||
const initialText = RoomListStore.instance.getFirstNameFilterCondition()?.search;
|
||||
dis.dispatch({ action: Action.ViewRoomDirectory, initialText });
|
||||
};
|
||||
|
||||
private renderCommunityInvites(): TemporaryTile[] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue