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

Manage bad m.file attachment format #7429

Merged
merged 1 commit into from
Mar 16, 2023
Merged

Conversation

manuroe
Copy link
Member

@manuroe manuroe commented Mar 15, 2023

Fixes #7406

By using value type checker methods.

With this fix, attachments with a wrong size format are still displayed in the timeline. Only the size is omitted like on the last item on this screenshot:

Screenshot 2023-03-15 at 14 52 21

#7406

By using value type checker methods.

With this fix, attachments with a wrong size format are still displayed in the timeline. Only the size is omitted
@manuroe manuroe requested review from a team, stefanceriu and Anderas and removed request for a team and stefanceriu March 15, 2023 14:21
if (fileSize)
{
body = [NSString stringWithFormat:@"%@ (%@)", body, [MXTools fileSizeToString: fileSize.longValue]];
}
else
{
MXLogDebug(@"[MXKEventFormatter] Warning: Unsupported m.file format: %@", event.description);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use MXLogErrorDetails here instead

@manuroe manuroe merged commit 5a3adde into develop Mar 16, 2023
@manuroe manuroe deleted the manu/7406_m_file_format branch March 16, 2023 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crashloop when attachment with size as string is found
2 participants