chore(webui): don't refresh inventory for sell on the tab that issued it #2506

Merged
Sainan merged 2 commits from sell-exclude into main 2025-07-18 15:36:11 -07:00
Showing only changes of commit 64ebcad7fc - Show all commits

View File

@ -43,7 +43,7 @@ export const stopWsServers = (promises: Promise<void>[]): void => {
let lastWsid: number = 0; let lastWsid: number = 0;
interface IWsCustomData extends ws { interface IWsCustomData extends ws {
id?: number; id: number;
accountId?: string; accountId?: string;
} }
@ -187,7 +187,7 @@ export const sendWsBroadcastEx = (data: IWsMsgToClient, accountId?: string, excl
for (const client of wsServer.clients) { for (const client of wsServer.clients) {
if ( if (
(!accountId || (client as IWsCustomData).accountId == accountId) && (!accountId || (client as IWsCustomData).accountId == accountId) &&
(!excludeWsid || (client as IWsCustomData).id != excludeWsid) (client as IWsCustomData).id != excludeWsid
) { ) {
client.send(msg); client.send(msg);
} }
@ -197,7 +197,7 @@ export const sendWsBroadcastEx = (data: IWsMsgToClient, accountId?: string, excl
for (const client of wssServer.clients) { for (const client of wssServer.clients) {
if ( if (
(!accountId || (client as IWsCustomData).accountId == accountId) && (!accountId || (client as IWsCustomData).accountId == accountId) &&
(!excludeWsid || (client as IWsCustomData).id != excludeWsid) (client as IWsCustomData).id != excludeWsid
) { ) {
client.send(msg); client.send(msg);
} }