Remove space-specific right panel store handling
This is no longer needed as the right panel always corresponds to the currently viewed room/space only. Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a2a066d8b4
commit
3f221891f7
21 changed files with 53 additions and 83 deletions
|
@ -16,7 +16,6 @@ export interface IRightPanelCardState {
|
|||
verificationRequest?: VerificationRequest;
|
||||
verificationRequestPromise?: Promise<VerificationRequest>;
|
||||
widgetId?: string;
|
||||
spaceId?: string;
|
||||
// Room3pidMemberInfo, Space3pidMemberInfo,
|
||||
memberInfoEvent?: MatrixEvent;
|
||||
// threads
|
||||
|
@ -32,7 +31,6 @@ export interface IRightPanelCardStateStored {
|
|||
memberId?: string;
|
||||
// we do not store the things associated with verification
|
||||
widgetId?: string;
|
||||
spaceId?: string;
|
||||
// 3pidMemberInfo
|
||||
memberInfoEventId?: string;
|
||||
// threads
|
||||
|
@ -80,7 +78,6 @@ export function convertCardToStore(panelState: IRightPanelCard): IRightPanelCard
|
|||
const state = panelState.state ?? {};
|
||||
const stateStored: IRightPanelCardStateStored = {
|
||||
widgetId: state.widgetId,
|
||||
spaceId: state.spaceId,
|
||||
isInitialEventHighlighted: state.isInitialEventHighlighted,
|
||||
initialEventScrollIntoView: state.initialEventScrollIntoView,
|
||||
threadHeadEventId: !!state?.threadHeadEvent?.getId() ? state.threadHeadEvent.getId() : undefined,
|
||||
|
@ -97,7 +94,6 @@ function convertStoreToCard(panelStateStore: IRightPanelCardStored, room: Room):
|
|||
const stateStored = panelStateStore.state ?? {};
|
||||
const state: IRightPanelCardState = {
|
||||
widgetId: stateStored.widgetId,
|
||||
spaceId: stateStored.spaceId,
|
||||
isInitialEventHighlighted: stateStored.isInitialEventHighlighted,
|
||||
initialEventScrollIntoView: stateStored.initialEventScrollIntoView,
|
||||
threadHeadEvent: !!stateStored?.threadHeadEventId
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue