Fix the ref, upload, keyframes, and implicit-any type errors. [skip build]
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user