Refresh balance after paid message sending.

This commit is contained in:
John Preston 2025-02-19 13:59:04 +04:00
parent 5b809c4fc6
commit fe9bac096b

View file

@ -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 {