mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-02 02:41:41 +00:00
becabb955d
Add a second tracing layer to find why the chat-list indicator stays empty
while the servers-summary detail view shows 100%:
- API.swift sendSimpleXCmd: log the raw bytes the core returns for the
"/get subs total" query, before decoding. getAgentSubsTotal is sent with
log:false, so nothing currently records its raw response; and
decodeAPIResult swallows decode errors (catch {}), so a JSON/shape
mismatch would silently produce empty values. This shows what the core
actually sends vs the decoded ssActive/ssPending we already log.
- ChatListView poll: log the actual AppChatState value (not just the
active bool) when a tick is gated out, to see which state it is stuck in
in the lock / return-from-background cases.