Skip to content

Conversation

jullianm
Copy link
Contributor

@jullianm jullianm commented Oct 8, 2025

TaskWPB-19433 [iOS] User can delete a message with a file

Issue

This PR handles deletion of files (WireCells) on multipart messages sent in a conversation, specifically it covers the following use cases:

  • Delete files from a text message with files attached
  • Delete files only with no text message
  • Delete files on a "reply" message
  • Delete files on a link preview message

Files should be deleted when opening the Files view.

Note: As aligned with web client, when deleting a message for self user only, message and files will disappear from the conversation however files will still show up in the Files view.

Testing

Above use cases were tested.

Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@jullianm jullianm requested review from a team, netbe and samwyndham and removed request for a team October 8, 2025 15:58
Copy link
Contributor

github-actions bot commented Oct 8, 2025

Test Results

2 059 tests   2 032 ✅  2m 11s ⏱️
  339 suites     27 💤
    2 files        0 ❌

Results for commit c78ee91.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@samwyndham samwyndham left a comment

Choose a reason for hiding this comment

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

question: @jullianm Why is there a need to attach the closure to the delete action. Can't everything be done in ConversationContentViewController.messageAction(actionId:for:view:)?

@jullianm
Copy link
Contributor Author

@samwyndham you're completely right, the closure is useless, I'll revert these changes and keep the rest, thanks!

@jullianm
Copy link
Contributor Author

@samwyndham removed unnecessary code in 8b33bcb

@jullianm jullianm requested a review from samwyndham October 10, 2025 08:55
@netbe netbe changed the title feat: delete message with files (WireCells) - WPB-19433 feat(WireCells): delete message with files - WPB-19433 Oct 13, 2025
@netbe netbe changed the title feat(WireCells): delete message with files - WPB-19433 feat(cells): delete message with files - WPB-19433 Oct 13, 2025
Copy link
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

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

left a couple comments before approving

Copy link
Contributor

@samwyndham samwyndham left a comment

Choose a reason for hiding this comment

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

Looks good. Approving assuming @netbes comments are addressed.

@jullianm jullianm requested a review from netbe October 14, 2025 06:54
Copy link
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

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

LGTM;)

@jullianm jullianm added this pull request to the merge queue Oct 14, 2025
Merged via the queue into develop with commit c47ea7d Oct 14, 2025
10 checks passed
@jullianm jullianm deleted the feat/delete-message-with-files branch October 14, 2025 08:48
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.

3 participants