mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 06:28:41 +00:00
fix #354
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
This commit is contained in:
parent
6dc9aa10bc
commit
b093a7acdb
3 changed files with 5 additions and 3 deletions
|
|
@ -219,7 +219,7 @@ class MediaFileService {
|
|||
await tempPath.copy(storedPath.path);
|
||||
} else {
|
||||
Log.error(
|
||||
'Could not store image neither as tempPath does not exists.',
|
||||
'Could not store image neither as ${tempPath.path} does not exists.',
|
||||
);
|
||||
}
|
||||
unawaited(createThumbnail());
|
||||
|
|
|
|||
|
|
@ -474,7 +474,9 @@ class _ShareImageEditorView extends State<ShareImageEditorView> {
|
|||
mediaService.tempPath.deleteSync();
|
||||
}
|
||||
if (mediaService.originalPath.existsSync()) {
|
||||
mediaService.originalPath.deleteSync();
|
||||
if (media.type != MediaType.video) {
|
||||
mediaService.originalPath.deleteSync();
|
||||
}
|
||||
}
|
||||
var bytes = imageBytes;
|
||||
if (media.type == MediaType.gif) {
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ class _MemoriesPhotoSliderViewState extends State<MemoriesPhotoSliderView> {
|
|||
}
|
||||
|
||||
orgMediaService.storedPath
|
||||
.copySync(newMediaService.tempPath.path);
|
||||
.copySync(newMediaService.originalPath.path);
|
||||
|
||||
if (!context.mounted) return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue