mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
Remove now unused stuff from RoomViewStore
This commit is contained in:
@@ -211,15 +211,6 @@ class RoomViewStore extends Store {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateScrollState(payload) {
|
|
||||||
// Clobber existing scroll state for the given room ID
|
|
||||||
const newScrollStateMap = this._state.scrollStateMap;
|
|
||||||
newScrollStateMap[payload.room_id] = payload.scroll_state;
|
|
||||||
this._setState({
|
|
||||||
scrollStateMap: newScrollStateMap,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
reset() {
|
reset() {
|
||||||
this._state = Object.assign({}, INITIAL_STATE);
|
this._state = Object.assign({}, INITIAL_STATE);
|
||||||
}
|
}
|
||||||
@@ -234,11 +225,6 @@ class RoomViewStore extends Store {
|
|||||||
return this._state.initialEventId;
|
return this._state.initialEventId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The offset to display the initial event at (see scrollStateMap)
|
|
||||||
getInitialEventPixelOffset() {
|
|
||||||
return this._state.initialEventPixelOffset;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Whether to highlight the initial event
|
// Whether to highlight the initial event
|
||||||
isInitialEventHighlighted() {
|
isInitialEventHighlighted() {
|
||||||
return this._state.isInitialEventHighlighted;
|
return this._state.isInitialEventHighlighted;
|
||||||
|
|||||||
Reference in New Issue
Block a user