fix telegram showing as disconnected when no channels yet
This commit is contained in:
parent
53a2dbac37
commit
9c6aa69602
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue