mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 20:57:07 +02:00
Refresh balance after paid message sending.
This commit is contained in:
parent
5b809c4fc6
commit
fe9bac096b
1 changed files with 4 additions and 0 deletions
|
@ -2266,6 +2266,10 @@ void HistoryItem::setRealId(MsgId newId) {
|
|||
if (const auto reply = Get<HistoryMessageReply>()) {
|
||||
incrementReplyToTopCounter();
|
||||
}
|
||||
|
||||
if (out() && starsPaid()) {
|
||||
_history->session().credits().load(true);
|
||||
}
|
||||
}
|
||||
|
||||
bool HistoryItem::canPin() const {
|
||||
|
|
Loading…
Add table
Reference in a new issue