From 76e9cef7e1c213d83928e72dc9a1a010094ea9dd Mon Sep 17 00:00:00 2001 From: hydrabolt Date: Sat, 26 Sep 2015 21:45:13 +0100 Subject: [PATCH] Added user presence tracking changes User status in cache is now updated as well as firing the event --- lib/Client.js | 1 + src/Client.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Client.js b/lib/Client.js index b80665556..7d7bba771 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -1087,6 +1087,7 @@ var Client = (function () { var presenceUser = new User(data.user); if (presenceUser.equalsStrict(userInCache)) { //they're exactly the same, an actual presence update + userInCache.status = data.status; self.trigger("presence", { user: userInCache, status: data.status, diff --git a/src/Client.js b/src/Client.js index 09a3f004c..5b5bc872f 100644 --- a/src/Client.js +++ b/src/Client.js @@ -992,6 +992,7 @@ class Client { var presenceUser = new User(data.user); if (presenceUser.equalsStrict(userInCache)) { //they're exactly the same, an actual presence update + userInCache.status = data.status; self.trigger("presence", { user: userInCache, status: data.status,