From f1816815a9cbb7ede9ad309ac217b4b57ee845fd Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 24 May 2018 17:12:57 +0300 Subject: [PATCH] Refresh last post on proxy promotion refresh. --- Telegram/SourceFiles/apiwrap.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index 5b78f61aa..6f8bd26bd 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -224,7 +224,11 @@ void ApiWrap::proxyPromotionDone(const MTPhelp_ProxyData &proxy) { App::feedChats(data.vchats); App::feedUsers(data.vusers); const auto peerId = peerFromMTP(data.vpeer); - _session->data().setProxyPromoted(App::peer(peerId)); + const auto peer = App::peer(peerId); + _session->data().setProxyPromoted(peer); + if (const auto history = App::historyLoaded(peer)) { + _session->api().requestDialogEntry(history); + } } void ApiWrap::applyUpdates(