fix telegram showing as disconnected when no channels yet

This commit is contained in:
ProofOfConcept 2026-04-03 20:43:15 -04:00
parent 53a2dbac37
commit 9c6aa69602

View file

@ -389,7 +389,8 @@ async fn fetch_all_channels_inner() -> Vec<(String, bool, u32)> {
let sock = channels_dir.join(format!("{}.sock", daemon_name));
let channels = query_one_daemon(&sock).await;
if channels.is_empty() {
result.push((daemon_name, false, 0));
// Daemon is running but has no channels yet (e.g. telegram with no messages)
result.push((daemon_name, true, 0));
} else {
result.extend(channels);
}