Updates: Fix update ton balance (#6117)

This commit is contained in:
Alexander Zinchuk 2025-08-15 18:25:29 +02:00
parent 4c25f43477
commit 6204fadc0f
2 changed files with 0 additions and 6 deletions

View File

@ -1044,7 +1044,6 @@ export function updater(update: Update) {
} else if (update instanceof GramJs.UpdateStarsBalance) {
const balance = buildApiCurrencyAmount(update.balance);
if (!balance) {
// Skip TON balance updates for now
return;
}
sendApiUpdate({

View File

@ -174,11 +174,6 @@ addActionHandler('apiUpdate', (global, actions, update): ActionReturnType => {
}
case 'updateStarsBalance': {
const stars = global.stars;
if (!stars) {
return;
}
global = updateStarsBalance(global, update.balance);
setGlobal(global);