fix: treat empty jumpChainIds as no jump

This commit is contained in:
lollipopkit🏳️‍⚧️
2026-01-17 23:55:41 +08:00
parent 61f161d8a6
commit 0a0928e2f6

View File

@@ -135,7 +135,7 @@ class ServerNotifier extends _$ServerNotifier {
final time2 = DateTime.now();
final spentTime = time2.difference(time1).inMilliseconds;
if (spi.jumpChainIds == null && spi.jumpId == null) {
if ((spi.jumpChainIds?.isNotEmpty != true) && spi.jumpId == null) {
Loggers.app.info('Connected to ${spi.name} in $spentTime ms.');
} else {
Loggers.app.info('Jump to ${spi.name} in $spentTime ms.');