mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 00:54:21 +01:00
This commit fixes the "got unknown eose subid" warnings that were appearing in the logs when relays sent EOSE messages for account-level subscriptions (relay list, mute list, contacts list). Root cause: - Account subscriptions are created during Accounts initialization and sent to all relays via pool.subscribe() - When new relays connect later, send_initial_filters() re-sends these subscription IDs to the new relay - However, these subscription IDs were never registered in the damus.subscriptions.subs HashMap - When EOSE messages arrived for these subscriptions, handle_eose() couldn't find them and logged warnings Solution: - Added is_account_sub() method to AccountSubs and Accounts to check if a subscription ID belongs to account subscriptions - Modified handle_eose() to check if unknown subscription IDs are account subscriptions before logging warnings - Account subscriptions are now silently ignored in EOSE handling since they're managed separately This eliminates the spurious warnings while preserving warnings for genuinely unknown subscription IDs.