mobile: fix core api usage

This commit is contained in:
Ammar Ahmed
2024-11-15 15:52:52 +05:00
parent bbf3477512
commit 6373cbc9a4
2 changed files with 3 additions and 3 deletions

View File

@@ -54,10 +54,10 @@ export async function setupDatabase(password) {
storage: Storage,
eventsource: Platform.OS === "ios" ? EventSource : AndroidEventSource,
fs: filesystem,
compressor: {
compressor: () => ({
compress: Gzip.deflate,
decompress: Gzip.inflate
},
}),
batchSize: 100,
sqliteOptions: {
dialect: (name) => ({

View File

@@ -244,7 +244,7 @@ export default async function downloadAttachment(
);
}
let filename = getFileNameWithExtension(
let filename = await getFileNameWithExtension(
attachment.filename,
attachment.mimeType
);