mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-04 18:08:54 +00:00
* [MM-69129] Prevent crash on nameless attachment. A draft attachment persisted without a name or an extension made `isImage` call `extractExtension(undefined)`, throwing on every render of the channel and of the global Drafts screen. Guard against it so the draft renders as a plain file card that the user can remove. * [MM-69129] Exercise the upload item tests against the real file utils Both suites stubbed `isImage` and `getFormattedFileSize`, which are pure functions, so they asserted states the component can never see and could not have caught this crash. Drop the mocks and let each fixture decide which branch renders. |
||
|---|---|---|
| .. | ||
| adapters.test.ts | ||
| adapters.ts | ||
| constants.ts | ||
| index.test.tsx | ||
| index.tsx | ||
| remove_button.test.tsx | ||
| remove_button.tsx | ||