Fix the ref, upload, keyframes, and implicit-any type errors. [skip build]
Checks / checks (push) Successful in 2m6s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-02 00:51:31 +11:00
parent 45f38f2ac8
commit 1e3d630b1a
30 changed files with 134 additions and 98 deletions
+20 -11
View File
@@ -382,17 +382,26 @@ class AndroidUnifiedPushManager {
const MatrixBackgroundSync = registerPlugin<MatrixBackgroundSyncPlugin>('MatrixBackgroundSync');
this.listenerHandles = [
await MatrixBackgroundSync.addListener('unifiedPushNewEndpoint', (event) => {
this.handleNewEndpoint(event).catch((err) => {
console.error('[BackgroundSync] handleNewEndpoint failed:', err);
});
}),
await MatrixBackgroundSync.addListener('unifiedPushUnregistered', (event) => {
this.handleUnregistered(event);
}),
await MatrixBackgroundSync.addListener('unifiedPushRegistrationFailed', (event) => {
this.handleRegistrationFailed(event);
}),
await MatrixBackgroundSync.addListener(
'unifiedPushNewEndpoint',
(event: UnifiedPushEndpointEvent) => {
this.handleNewEndpoint(event).catch((err) => {
console.error('[BackgroundSync] handleNewEndpoint failed:', err);
});
},
),
await MatrixBackgroundSync.addListener(
'unifiedPushUnregistered',
(event: UnifiedPushUnregisteredEvent) => {
this.handleUnregistered(event);
},
),
await MatrixBackgroundSync.addListener(
'unifiedPushRegistrationFailed',
(event: UnifiedPushRegistrationFailedEvent) => {
this.handleRegistrationFailed(event);
},
),
];
this.listenersReady = true;
}
+1 -1
View File
@@ -7,7 +7,7 @@ import { timeHourMinute } from './time';
* This intercepts the copy event on the timeline and reformats the copied text.
*/
export const setupCopyHandler = (
containerRef: React.RefObject<HTMLElement>,
containerRef: React.RefObject<HTMLElement | null>,
getMessageData: (eventId: string) => { sender: string; ts: number; content: string } | null,
hour24Clock: boolean,
): (() => void) => {
+2 -1
View File
@@ -133,7 +133,8 @@ export const decryptFile = async (
return blob;
};
export type TUploadContent = File | Blob;
// Producers can pass a plain Blob (decryptFile), so name is not always present.
export type TUploadContent = File | (Blob & { name?: string });
export type ContentUploadOptions = {
name?: string;