TF-725 Handle upload inline image to server

This commit is contained in:
dab246
2022-07-20 16:47:32 +07:00
committed by Dat H. Pham
parent d823862726
commit d416f858c7
3 changed files with 128 additions and 6 deletions
@@ -53,7 +53,7 @@ class UploadAttachment extends Equatable {
}
if (attachment != null) {
_updateEvent(Right(SuccessAttachmentUploadState(uploadTaskId, attachment)));
_updateEvent(Right(SuccessAttachmentUploadState(uploadTaskId, attachment, fileInfo)));
} else {
_updateEvent(Left(ErrorAttachmentUploadState(uploadTaskId)));
}