mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-05-02 11:32:35 +02:00
Contact names stayed stale indefinitely because mc.contacts (in-memory dict) was only populated at startup. When a remote node renamed itself, the device firmware updated its contact list but the app never re-read it. Now ensure_contacts(follow=True) is called when contacts_dirty is set: - In _on_advertisement(): refresh before name lookup (incremental via lastmod) - In get_contacts_with_last_seen(): refresh + DB sync before serving API data Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>