Repository navigation
Commit 39b0fb3
Refresh paid-message UI when the Stars price changes (#50)
* Fix stale paid message price after a group removes it
The chat read the group's price from cached full channel data first,
which refreshes rarely, so a removed price kept showing until it did.
Read the price from the channel peer, which updates as soon as the
price changes, matching iOS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refresh paid-message price when chat fees change
* Confirm paid messages again when the price changes
Recheck "don't ask again" when the price or peer changes, so a higher
price always asks for confirmation. Save the choice under the
per-message price and ignore choices saved by older builds, which
could hold a multi-message total.
Show the current price in the media preview, and explain with an
alert when a confirmed send is cancelled because the price changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 30097e3 commit 39b0fb3
9 files changed
Lines changed: 417 additions & 98 deletions
File tree
- packages
- ChatUI/Sources/ChatUI
- InAppSettings/Sources/InAppSettings
- PreviewSenderUI/Sources/PreviewSenderUI
- tools/tests/paid-message-state
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4376 | 4376 | | |
4377 | 4377 | | |
4378 | 4378 | | |
| 4379 | + | |
4379 | 4380 | | |
4380 | 4381 | | |
4381 | 4382 | | |
4382 | 4383 | | |
4383 | 4384 | | |
4384 | 4385 | | |
4385 | 4386 | | |
4386 | | - | |
| 4387 | + | |
4387 | 4388 | | |
4388 | 4389 | | |
4389 | 4390 | | |
| |||
4865 | 4866 | | |
4866 | 4867 | | |
4867 | 4868 | | |
4868 | | - | |
| 4869 | + | |
4869 | 4870 | | |
4870 | 4871 | | |
4871 | 4872 | | |
4872 | 4873 | | |
4873 | 4874 | | |
4874 | 4875 | | |
4875 | | - | |
| 4876 | + | |
4876 | 4877 | | |
4877 | 4878 | | |
4878 | 4879 | | |
| |||
5682 | 5683 | | |
5683 | 5684 | | |
5684 | 5685 | | |
5685 | | - | |
| 5686 | + | |
5686 | 5687 | | |
5687 | 5688 | | |
5688 | 5689 | | |
5689 | 5690 | | |
5690 | 5691 | | |
5691 | 5692 | | |
5692 | | - | |
| 5693 | + | |
5693 | 5694 | | |
5694 | 5695 | | |
5695 | 5696 | | |
| |||
6766 | 6767 | | |
6767 | 6768 | | |
6768 | 6769 | | |
| 6770 | + | |
6769 | 6771 | | |
6770 | 6772 | | |
6771 | 6773 | | |
6772 | 6774 | | |
6773 | 6775 | | |
6774 | 6776 | | |
6775 | | - | |
| 6777 | + | |
6776 | 6778 | | |
6777 | 6779 | | |
6778 | 6780 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1247 | 1247 | | |
1248 | 1248 | | |
1249 | 1249 | | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
1250 | 1254 | | |
1251 | 1255 | | |
1252 | 1256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
221 | 226 | | |
222 | 227 | | |
223 | 228 | | |
| |||
0 commit comments