Add search icon in room header
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
@@ -23,10 +23,10 @@ export function selectRoom(roomId, eventId) {
|
||||
});
|
||||
}
|
||||
|
||||
export function toggleRoomSettings(roomId) {
|
||||
export function toggleRoomSettings(tabText) {
|
||||
appDispatcher.dispatch({
|
||||
type: cons.actions.navigation.TOGGLE_ROOM_SETTINGS,
|
||||
roomId,
|
||||
tabText,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,11 @@ class Navigation extends EventEmitter {
|
||||
},
|
||||
[cons.actions.navigation.TOGGLE_ROOM_SETTINGS]: () => {
|
||||
this.isRoomSettings = !this.isRoomSettings;
|
||||
this.emit(cons.events.navigation.ROOM_SETTINGS_TOGGLED, this.isRoomSettings);
|
||||
this.emit(
|
||||
cons.events.navigation.ROOM_SETTINGS_TOGGLED,
|
||||
this.isRoomSettings,
|
||||
action.tabText,
|
||||
);
|
||||
},
|
||||
[cons.actions.navigation.OPEN_INVITE_LIST]: () => {
|
||||
this.emit(cons.events.navigation.INVITE_LIST_OPENED);
|
||||
|
||||
Reference in New Issue
Block a user