mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-13 10:40:28 +03:00
added search term ability in InviteUser component
This commit is contained in:
parent
39b84a083d
commit
4ec770da63
4 changed files with 39 additions and 27 deletions
|
|
@ -39,10 +39,11 @@ function openCreateChannel() {
|
|||
});
|
||||
}
|
||||
|
||||
function openInviteUser(roomId) {
|
||||
function openInviteUser(roomId, searchTerm) {
|
||||
appDispatcher.dispatch({
|
||||
type: cons.actions.navigation.OPEN_INVITE_USER,
|
||||
roomId,
|
||||
searchTerm,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class Navigation extends EventEmitter {
|
|||
this.emit(cons.events.navigation.CREATE_CHANNEL_OPENED);
|
||||
},
|
||||
[cons.actions.navigation.OPEN_INVITE_USER]: () => {
|
||||
this.emit(cons.events.navigation.INVITE_USER_OPENED, action.roomId);
|
||||
this.emit(cons.events.navigation.INVITE_USER_OPENED, action.roomId, action.searchTerm);
|
||||
},
|
||||
[cons.actions.navigation.OPEN_SETTINGS]: () => {
|
||||
this.emit(cons.events.navigation.SETTINGS_OPENED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue