-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline Error Button with Retry for chat images #2100
Conversation
Hey there 👋,
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR specific changes looks good to me.
final mediaPath = | ||
(await _convo!.mediaPath(messageInfo.messageId, false)).text(); | ||
|
||
if (mediaPath != null) { | ||
state = state.copyWith( | ||
mediaFile: File(mediaPath.text()!), | ||
videoThumbnailFile: videoThumbnailFile, | ||
mediaFile: File(mediaPath), | ||
videoThumbnailFile: null, | ||
mediaChatLoadingState: const MediaChatLoadingState.loaded(), | ||
); | ||
final videoThumbnailFile = await getThumbnailData(mediaPath); | ||
if (videoThumbnailFile != null) { | ||
if (state.mediaFile?.path == mediaPath) { | ||
state = state.copyWith(videoThumbnailFile: videoThumbnailFile); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming that this changes are for updating change in 2 separate action for file and thumb so that one can not have to wait.
Images in chat media had a really ugly illegible error message (see https://github.com/acterglobal/a3-meta/issues/455 ). Built on top of #2089 this adds an inline icon instead that upon click opens our new ErrorDialog with the option to retry or report it as a bug.
Fixes https://github.com/acterglobal/a3-meta/issues/455 .