2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added credits balance to main session.

This commit is contained in:
23rd
2024-05-22 17:01:42 +03:00
committed by John Preston
parent 174fb62c32
commit e11755af46
5 changed files with 36 additions and 4 deletions

View File

@@ -2614,6 +2614,11 @@ void Updates::feedUpdate(const MTPUpdate &update) {
_session->data().stories().apply(data.vstealth_mode());
} break;
case mtpc_updateStarsBalance: {
const auto &data = update.c_updateStarsBalance();
_session->setCredits(data.vbalance().v);
} break;
}
}