From fe9bac096b962388c492532f7159bad4494007b2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 19 Feb 2025 13:59:04 +0400 Subject: [PATCH] Refresh balance after paid message sending. --- Telegram/SourceFiles/history/history_item.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 0798c1699..08afc9a2e 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -2266,6 +2266,10 @@ void HistoryItem::setRealId(MsgId newId) { if (const auto reply = Get()) { incrementReplyToTopCounter(); } + + if (out() && starsPaid()) { + _history->session().credits().load(true); + } } bool HistoryItem::canPin() const {