Commit fe3a09b
fix(telegram): migrate legacy chat template to include {status_emoji}
Existing Telegram (and VK) destinations had the old default template
("{value} {unit} {trend_arrow} {time}") stored in SharedPreferences.
resolvedTemplate() returns the stored value when non-empty, so the new
{status_emoji} token was never applied to existing destinations.
Auto-migrate on load: if the stored template exactly matches the legacy
default, replace it with the current default which prepends {status_emoji}.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b6c5193 commit fe3a09b
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
575 | 577 | | |
576 | 578 | | |
577 | 579 | | |
578 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
579 | 587 | | |
580 | 588 | | |
581 | 589 | | |
| |||
0 commit comments