Revert "Fix Filepanel scroll position state lost when room is changed"

This commit is contained in:
Travis Ralston 2020-04-19 19:14:08 -06:00 committed by GitHub
parent c04a8d326e
commit 972baa881b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 59 deletions

View file

@ -32,24 +32,15 @@ class RoomScrollStateStore {
//
// pixelOffset: the number of pixels the window is scrolled down
// from the focussedEvent.
this._RoomViewScrollStateMap = {};
this._FilePanelScrollStateMap = {};
this._scrollStateMap = {};
}
getRoomViewScrollState(roomId) {
return this._RoomViewScrollStateMap[roomId];
getScrollState(roomId) {
return this._scrollStateMap[roomId];
}
setRoomViewScrollState(roomId, scrollState) {
this._RoomViewScrollStateMap[roomId] = scrollState;
}
getFilePanelScrollState(roomId, scrollState) {
return this._FilePanelScrollStateMap[roomId];
}
setFilePanelScrollState(roomId, scrollState) {
this._FilePanelScrollStateMap[roomId] = scrollState;
setScrollState(roomId, scrollState) {
this._scrollStateMap[roomId] = scrollState;
}
}