From ef7b1f2e5fd608f7d20d8af279f5a65e06af5257 Mon Sep 17 00:00:00 2001 From: Timo <6156589+Shik3i@users.noreply.github.com> Date: Sat, 13 Jun 2026 04:52:14 +0200 Subject: [PATCH] fix: suppress video heartbeat PEER_STATUS when alone in room --- extension/background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extension/background.js b/extension/background.js index 69e1225..04f1f12 100644 --- a/extension/background.js +++ b/extension/background.js @@ -1664,7 +1664,8 @@ async function handleAsyncMessage(message, sender, sendResponse) { markRoomUseful(); getSettings().then(settings => { const statusPayload = { ...message.payload, peerId, username: settings.username, tabTitle: currentTabTitle }; - emit(EVENTS.PEER_STATUS, statusPayload); + const otherCount = currentRoom && Array.isArray(currentRoom.peers) ? currentRoom.peers.filter(p => (typeof p === 'object' ? p.peerId : p) !== peerId).length : 0; + if (otherCount > 0) emit(EVENTS.PEER_STATUS, statusPayload); if (currentRoom && Array.isArray(currentRoom.peers)) { const me = currentRoom.peers.find(p => (p.peerId || p) === peerId);