Signal-iOS icon indicating copy to clipboard operation
Signal-iOS copied to clipboard

Clamped Disppearing Messages to 4 Weeks

Open MarlowBrown opened this issue 11 months ago • 2 comments

Contributor checklist

  • [x] My commits are rebased on the latest main branch
  • [x] My commits are in nice logical chunks
  • [x] My contribution is fully baked and is ready to be merged as is
  • [x] I have tested my contribution on these devices:
  • iPhone 16, iOS 18.2

Description

This pull request fixes #5947 by clamping an internal value in the Disappearing Messages Timers picker to 4 weeks.

MarlowBrown avatar Feb 09 '25 04:02 MarlowBrown

Hi @MarlowBrown,

While I'm guessing this workaround works for the specific case of handling too-many weeks, it feels like we shouldn't need to be clamping. Instead, it feels like when the unit is changed (e.g., from days to weeks), and the maximum selectable number of units is clamped in the UI (e.g., from some number of days to "4", for weeks), that the new "selected" unit should be propagated back to the view controller by the CustomTimePicker.

sashaweiss-signal avatar Feb 25 '25 22:02 sashaweiss-signal

Update for you @sashaweiss-signal

I changed the code to avoid clamping. The change is a little weird as technically until the user has moved the picker wheel, it doesn't count as "selected". I think it might be by design, so the code for force selecting is warranted.

MarlowBrown avatar Feb 27 '25 09:02 MarlowBrown

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 28 '25 12:05 github-actions[bot]

Looks good to me

dihv avatar May 28 '25 14:05 dihv

Hey @MarlowBrown, thanks for the contribution. I ended up rebuilding this view, and in the process addressed the clamping issue.

The rebuild is in 65dccf9f42, which should become public with an upcoming release.

sashaweiss-signal avatar May 28 '25 21:05 sashaweiss-signal

Sounds good. Thank you for keeping me updated! Check out my other PRs btw ;)

MarlowBrown avatar May 28 '25 21:05 MarlowBrown