This commit is contained in:
Jamie
2026-03-17 11:14:02 -07:00
committed by GitHub
parent 257fb4843b
commit f21f83de01
74 changed files with 1664 additions and 1653 deletions

View File

@@ -60,7 +60,7 @@ export const SmartChatsTab = memo(function SmartChatsTab() {
useChatFolderActions();
const { saveDraftRecordingIfNeeded } = useComposerActions();
const lastOpenedConversationId = useRef<string | undefined>();
const lastOpenedConversationId = useRef<string | undefined>(undefined);
useEffect(() => {
if (selectedConversationId !== lastOpenedConversationId.current) {

View File

@@ -263,7 +263,7 @@ function ContactContextMenu({
export function SmartMediaContextMenu({
mediaItem,
children,
}: PropsType): JSX.Element {
}: PropsType): React.JSX.Element {
const i18n = useSelector(getIntl);
const { showConversation } = useConversationsActions();

View File

@@ -31,7 +31,7 @@ export type PropsType = Readonly<{
function renderContextMenu(
mediaItem: GenericMediaItemType,
children: ReactNode
): JSX.Element {
): React.JSX.Element {
return (
<SmartMediaContextMenu mediaItem={mediaItem}>
{children}

View File

@@ -13,7 +13,7 @@ export type SmartSafetyNumberModalProps = {
contactID: string;
};
function renderSafetyNumberViewer(props: SafetyNumberProps): JSX.Element {
function renderSafetyNumberViewer(props: SafetyNumberProps): React.JSX.Element {
return <SmartSafetyNumberViewer key={props.contactID} {...props} />;
}

View File

@@ -47,7 +47,7 @@ import { DataReader } from '../../sql/Client.preload.js';
import { isInternalFeaturesEnabled } from '../../util/isInternalFeaturesEnabled.dom.js';
export type SmartTimelineItemProps = {
containerElementRef: RefObject<HTMLElement>;
containerElementRef: RefObject<HTMLElement | null>;
containerWidthBreakpoint: WidthBreakpoint;
conversationId: string;
interactivity: MessageInteractivity;