Keep destination checkmarks in sync with the main subscribe button

The main button's subscribe/unsubscribe never told the destination
membership loader, so "Subscribe On…" kept a stale checkmark for the
current account — and tapping that row would do the opposite of what
the mark promised.

Also: the menu item and success toast now name the account the write
lands on when more than one destination is offered, and "Subscribe On…"
no longer waits for the channel request — the cached header stands in
until the load answers.
This commit is contained in:
Arkadiusz Fal
2026-09-19 23:51:19 +02:00
parent 7db03f2392
commit 01ff78aaa6
3 changed files with 107 additions and 9 deletions

View File

@@ -952,6 +952,17 @@
}
}
},
"channel.menu.subscribe.withAccount" : {
"comment" : "Menu item; %@ is the account or destination the subscribe writes to",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Subscribe - %@"
}
}
}
},
"channel.menu.subscribeOn" : {
"comment" : "Submenu listing the accounts a channel can be subscribed on",
"localizations" : {
@@ -984,6 +995,17 @@
}
}
},
"channel.menu.unsubscribe.withAccount" : {
"comment" : "Menu item; %@ is the account or destination the unsubscribe writes to",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Unsubscribe - %@"
}
}
}
},
"channel.noDescription" : {
"localizations" : {
"en" : {