mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-03 07:48:46 +08:00
Update UIDesktop.js
This commit is contained in:
parent
49c3df2328
commit
695d7b8654
@ -332,6 +332,14 @@ async function UIDesktop(options){
|
|||||||
refresh_user_data(window.auth_token);
|
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) => {
|
socket.on('item.renamed', async (item) => {
|
||||||
// Notify all apps that are watching this item
|
// Notify all apps that are watching this item
|
||||||
sendItemChangeEventToWatchingApps(item.uid, {
|
sendItemChangeEventToWatchingApps(item.uid, {
|
||||||
|
Loading…
Reference in New Issue
Block a user