From 141864917ac920a081df6f6b34c13ba83e660bbf Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 24 Aug 2021 22:21:07 +0200 Subject: [PATCH] fix(UserUpdateAction): rely on client.user when ids match (#6511) --- src/client/actions/UserUpdate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/actions/UserUpdate.js b/src/client/actions/UserUpdate.js index 0033aaaec0e1..df992f7f6042 100644 --- a/src/client/actions/UserUpdate.js +++ b/src/client/actions/UserUpdate.js @@ -7,7 +7,7 @@ class UserUpdateAction extends Action { handle(data) { const client = this.client; - const newUser = client.users.cache.get(data.id); + const newUser = data.id === client.user.id ? client.user : client.users.cache.get(data.id); const oldUser = newUser._update(data); if (!oldUser.equals(newUser)) {