fix: reset right panel when we swap conversations

pull/3083/head
William Grant 11 months ago
parent fe64b26012
commit 17250a4609

@ -63,7 +63,7 @@ const AvatarItem = () => {
};
type Props = { conversationId: string; style?: CSSProperties };
const ConversationListItemInner = (props: Props) => {
export const ConversationListItem = (props: Props) => {
const { conversationId, style } = props;
const key = `conversation-item-${conversationId}`;
@ -137,5 +137,3 @@ const ConversationListItemInner = (props: Props) => {
</ContextConversationProvider>
);
};
export const ConversationListItem = ConversationListItemInner;

@ -26,6 +26,7 @@ import {
DisappearingMessageType,
} from '../../session/disappearing_messages/types';
import { ReactionList } from '../../types/Reaction';
import { resetRightOverlayMode } from './section';
export type CallNotificationType = 'missed-call' | 'started-call' | 'answered-a-call';
@ -1184,6 +1185,7 @@ export async function openConversationWithMessages(args: {
initialQuotes,
})
);
window.inboxStore?.dispatch(resetRightOverlayMode());
}
export async function openConversationToSpecificMessage(args: {

Loading…
Cancel
Save