close #2 : added autocomplete for display name & replace fusejs

This commit is contained in:
unknown 2021-08-24 15:31:20 +05:30
parent c81628a66e
commit eb667bc436
6 changed files with 183 additions and 151 deletions

View file

@ -7,7 +7,7 @@ class Navigation extends EventEmitter {
super();
this.activeTab = 'channels';
this.selectedRoom = null;
this.activeRoomId = null;
this.isPeopleDrawerVisible = true;
}
@ -15,8 +15,8 @@ class Navigation extends EventEmitter {
return this.activeTab;
}
getActiveRoom() {
return this.selectedRoom;
getActiveRoomId() {
return this.activeRoomId;
}
navigate(action) {
@ -26,8 +26,8 @@ class Navigation extends EventEmitter {
this.emit(cons.events.navigation.TAB_CHANGED, this.activeTab);
},
[cons.actions.navigation.SELECT_ROOM]: () => {
this.selectedRoom = action.roomId;
this.emit(cons.events.navigation.ROOM_SELECTED, this.selectedRoom);
this.activeRoomId = action.roomId;
this.emit(cons.events.navigation.ROOM_SELECTED, this.activeRoomId);
},
[cons.actions.navigation.TOGGLE_PEOPLE_DRAWER]: () => {
this.isPeopleDrawerVisible = !this.isPeopleDrawerVisible;