Fix web compile and sending web attachments

This commit is contained in:
Tanay Neotia
2023-08-19 09:52:40 -04:00
parent 2b0b2f0d0f
commit aaf2d4289e
3 changed files with 4 additions and 4 deletions

View File

@ -194,7 +194,7 @@ class ActionHandler extends GetxService {
http.sendAttachment(
c.guid,
attachment.guid!,
PlatformFile(name: attachment.transferName!, bytes: attachment.bytes, path: attachment.path, size: attachment.totalBytes ?? 0),
PlatformFile(name: attachment.transferName!, bytes: attachment.bytes, path: kIsWeb ? null : attachment.path, size: attachment.totalBytes ?? 0),
onSendProgress: (count, total) => progress.item2.value = count / attachment.bytes!.length,
method: (ss.settings.enablePrivateAPI.value
&& ss.settings.privateAPIAttachmentSend.value)