mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-07-19 08:53:54 -05:00
Fix updating friends presence
This commit is contained in:
parent
cc8dbc6f6e
commit
a6f4a5a601
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user