Type the updater API and the Tauri global. [skip build]
Checks / checks (push) Successful in 2m7s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-01 22:36:44 +11:00
parent 3781b05f6f
commit 027dbee1f1
7 changed files with 63 additions and 47 deletions
+5 -5
View File
@@ -151,7 +151,7 @@ export const MessageAllReactionItem = as<
return (
<>
<Overlay
onContextMenu={(evt: any) => {
onContextMenu={(evt) => {
evt.stopPropagation();
}}
open={open}
@@ -974,7 +974,7 @@ export const Message = as<'div', MessageProps>(
const handleContextMenu: MouseEventHandler<HTMLDivElement> = (evt) => {
if (evt.altKey || !window.getSelection()?.isCollapsed || edit) return;
const tag = (evt.target as any).tagName;
const tag = (evt.target as HTMLElement).tagName;
if (typeof tag === 'string' && (tag.toLowerCase() === 'a' || tag.toLowerCase() === 'img'))
return;
evt.preventDefault();
@@ -1187,7 +1187,7 @@ export const Message = as<'div', MessageProps>(
after={<Icon size="100" src={Icons.ReplyArrow} />}
radii="300"
data-event-id={mEvent.getId()}
onClick={(evt: any) => {
onClick={(evt) => {
onReplyClick(evt);
closeMenu();
}}
@@ -1207,7 +1207,7 @@ export const Message = as<'div', MessageProps>(
after={<Icon src={Icons.ThreadPlus} size="100" />}
radii="300"
data-event-id={mEvent.getId()}
onClick={(evt: any) => {
onClick={(evt) => {
onReplyClick(evt, true);
closeMenu();
}}
@@ -1359,7 +1359,7 @@ export const Event = as<'div', EventProps>(
const handleContextMenu: MouseEventHandler<HTMLDivElement> = (evt) => {
if (evt.altKey || !window.getSelection()?.isCollapsed) return;
const tag = (evt.target as any).tagName;
const tag = (evt.target as HTMLElement).tagName;
if (typeof tag === 'string' && (tag.toLowerCase() === 'a' || tag.toLowerCase() === 'img'))
return;
evt.preventDefault();