Updates: Fix update ton balance (#6117)
This commit is contained in:
parent
4c25f43477
commit
6204fadc0f
@ -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({
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user