Implement proper handling for inactive/active subscriptions

This commit is contained in:
2025-04-18 00:11:01 +02:00
parent a43a3b441f
commit 63bc71c405
10 changed files with 268 additions and 48 deletions

View File

@@ -190,7 +190,11 @@ class _ChannelScannerResultChannelSubscribeState extends State<ChannelScannerRes
if (sub == null) {
return "Not Subscribed";
} else if (sub.confirmed) {
return "Already Subscribed";
if (sub.active) {
return "Already Subscribed";
} else {
return "Already Subscribed (inactive)";
}
} else {
return "Unconfirmed Subscription";
}

View File

@@ -149,7 +149,11 @@ class _ChannelScannerResultChannelViewState extends State<ChannelScannerResultCh
if (sub == null) {
return "Not Subscribed";
} else if (sub.confirmed) {
return "Already Subscribed";
if (sub.active) {
return "Already Subscribed";
} else {
return "Already Subscribed (inactive)";
}
} else {
return "Unconfirmed Subscription";
}