From a6f4a5a601605fba338285802c1df67e710ce959 Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Fri, 18 Mar 2022 19:16:50 +0000 Subject: [PATCH] Fix updating friends presence --- src/cli/nso/notify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/nso/notify.ts b/src/cli/nso/notify.ts index a20b454..7fc4624 100644 --- a/src/cli/nso/notify.ts +++ b/src/cli/nso/notify.ts @@ -141,7 +141,7 @@ export class ZncNotifications { const newonlinefriends: (CurrentUser | Friend)[] = []; for (const friend of friends) { - const prev = this.onlinefriends.find(f => f.id === friend.id); + const prev = this.onlinefriends.find(f => f.nsaId === friend.nsaId); const lastpresence = prev?.presence; const online = friend.presence.state === PresenceState.ONLINE || friend.presence.state === PresenceState.PLAYING;