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) {
|
} else if (update instanceof GramJs.UpdateStarsBalance) {
|
||||||
const balance = buildApiCurrencyAmount(update.balance);
|
const balance = buildApiCurrencyAmount(update.balance);
|
||||||
if (!balance) {
|
if (!balance) {
|
||||||
// Skip TON balance updates for now
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sendApiUpdate({
|
sendApiUpdate({
|
||||||
|
|||||||
@ -174,11 +174,6 @@ addActionHandler('apiUpdate', (global, actions, update): ActionReturnType => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case 'updateStarsBalance': {
|
case 'updateStarsBalance': {
|
||||||
const stars = global.stars;
|
|
||||||
if (!stars) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
global = updateStarsBalance(global, update.balance);
|
global = updateStarsBalance(global, update.balance);
|
||||||
|
|
||||||
setGlobal(global);
|
setGlobal(global);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user