From 6c38919c3df5cc22e1f5f7219c65af7aefc11ef9 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 26 Mar 2018 01:17:32 +0400 Subject: [PATCH] Scroll history to down when sharing contact. --- Telegram/SourceFiles/apiwrap.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index dadfc0f35d..e833d616ea 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -3584,6 +3584,12 @@ void ApiWrap::sendSharedContact( MTP_string(firstName), MTP_string(lastName)); sendMedia(item, media, peer->notifySilentPosts()); + + if (const auto main = App::main()) { + _session->data().sendHistoryChangeNotifications(); + main->historyToDown(history); + main->dialogsToUp(); + } } void ApiWrap::sendVoiceMessage(