refactor RoomScrollStateStore to accomodate scrollmaps for file/notif panel
This commit is contained in:
parent
2b6cbae4a7
commit
8cf6a8c311
2 changed files with 7 additions and 7 deletions
|
@ -32,15 +32,15 @@ class RoomScrollStateStore {
|
|||
//
|
||||
// pixelOffset: the number of pixels the window is scrolled down
|
||||
// from the focussedEvent.
|
||||
this._scrollStateMap = {};
|
||||
this._RoomViewScrollStateMap = {};
|
||||
}
|
||||
|
||||
getScrollState(roomId) {
|
||||
return this._scrollStateMap[roomId];
|
||||
getRoomViewScrollState(roomId) {
|
||||
return this._RoomViewScrollStateMap[roomId];
|
||||
}
|
||||
|
||||
setScrollState(roomId, scrollState) {
|
||||
this._scrollStateMap[roomId] = scrollState;
|
||||
setRoomViewScrollState(roomId, scrollState) {
|
||||
this._RoomViewScrollStateMap[roomId] = scrollState;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue