TF-1115 Implement catch exception for ComposerDataSource

This commit is contained in:
dab246
2022-10-28 12:34:40 +07:00
committed by Dat H. Pham
parent 0e8832f6a3
commit 2f392232bc
2 changed files with 18 additions and 4 deletions
@@ -69,7 +69,7 @@ class ComposerBindings extends BaseBindings {
@override
void bindingsDataSourceImpl() {
Get.lazyPut(() => AttachmentUploadDataSourceImpl(Get.find<FileUploader>()));
Get.lazyPut(() => ComposerDataSourceImpl(Get.find<DownloadClient>()));
Get.lazyPut(() => ComposerDataSourceImpl(Get.find<DownloadClient>(), Get.find<RemoteExceptionThrower>()));
Get.lazyPut(() => ContactDataSourceImpl());
Get.lazyPut(() => MailboxDataSourceImpl(
Get.find<MailboxAPI>(),