mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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>()) {
|
if (const auto reply = Get<HistoryMessageReply>()) {
|
||||||
incrementReplyToTopCounter();
|
incrementReplyToTopCounter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (out() && starsPaid()) {
|
||||||
|
_history->session().credits().load(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HistoryItem::canPin() const {
|
bool HistoryItem::canPin() const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue