mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-11-23 09:32:40 +00:00
c5d33fdae8
* only bulk-mark devices offline on client disconnect when lazy ping is enabled the OnRealtimeConnectRequest hook re-stamped every shutdown-capable device as offline whenever the last realtime client disconnected, even with lazy ping disabled where the ping cron keeps statuses fresh. this overwrote the records' updated autodate, which the UI surfaces as the 'offline since' time, so a dashboard close looked like every device had just powered off. the saves were also silent, so the unified /logs page gave no hint. - skip the offline transition entirely when lazy ping is disabled - leave already-offline devices untouched so their offline-since timestamp keeps its real meaning - log an info event when the sweep actually marks devices offline Fixes #1768 * fix group wake/shutdown for devices in multiple groups the group handlers filter with groups.id = {:grpId}, which on a multi-relation field requires every group to match. devices in more than one group therefore never matched and were skipped by the group wake and shutdown buttons. use ?= to match on any group. Fixes #1770