Skip to content
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

Merged
merged 14 commits into from
Aug 28, 2024

Conversation

gnunicorn
Copy link
Contributor

@gnunicorn gnunicorn commented Aug 25, 2024

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.

  • Tests for proof.

Fixes https://github.com/acterglobal/a3-meta/issues/455 .

@gnunicorn gnunicorn added bug Something isn't working infrastructure labels Aug 25, 2024
Copy link
Contributor

Hey there 👋,
and thanks for the contribution. But it seems like you forgot to

  • 📰 Add a markdown file in .changes/ explaining what changed

@gnunicorn gnunicorn mentioned this pull request Aug 25, 2024
17 tasks
Copy link
Contributor

@kumarpalsinh25 kumarpalsinh25 left a 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.

Comment on lines +36 to +50
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);
}
}
Copy link
Contributor

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.

@gnunicorn gnunicorn merged commit befe585 into main Aug 28, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infrastructure
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants