Fix status mapper

This commit is contained in:
problematicconsumer
2023-12-01 14:22:00 +03:30
parent ed614988a2
commit d1ec932fff
3 changed files with 11 additions and 14 deletions

View File

@@ -26,6 +26,8 @@ sealed class SingboxStatus with _$SingboxStatus {
(e) => alertStr?.toLowerCase() == e.name.toLowerCase(),
);
return SingboxStatus.stopped(alert: alert, message: messageStr);
case {"status": "Stopped"}:
return const SingboxStatus.stopped();
case {"status": "Starting"}:
return const SingboxStarting();
case {"status": "Started"}: