Implement proper handling for inactive/active subscriptions
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user