From 695d7b8654c884d3e5ca292471ef458007be8d66 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Sun, 14 Apr 2024 20:53:31 -0700 Subject: [PATCH] Update UIDesktop.js --- src/UI/UIDesktop.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/UI/UIDesktop.js b/src/UI/UIDesktop.js index 182abb76..d73f918c 100644 --- a/src/UI/UIDesktop.js +++ b/src/UI/UIDesktop.js @@ -332,6 +332,14 @@ async function UIDesktop(options){ refresh_user_data(window.auth_token); }); + socket.on('user.email_changed', (msg) => { + // don't update if this is the original client that initiated the action + if(msg.original_client_socket_id === window.socket.id) + return; + + refresh_user_data(window.auth_token); + }); + socket.on('item.renamed', async (item) => { // Notify all apps that are watching this item sendItemChangeEventToWatchingApps(item.uid, {