Tidy up code
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
d7ca374991
commit
f5d490ee78
2 changed files with 16 additions and 12 deletions
|
@ -130,11 +130,6 @@ export default class RoomSubList extends React.PureComponent {
|
|||
this.props.list.some((r) => r.roomId === payload.room_id)
|
||||
) {
|
||||
this.onClick();
|
||||
// re-fire to scroll the room tile, normally it catches `view_room` but here it wasn't rendered yet.
|
||||
dis.dispatch({
|
||||
action: 'scroll_room_tile',
|
||||
room_id: payload.room_id,
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue