From e42e973ed524b615a9142f8a4cb026819c4a1113 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 30 May 2018 01:18:10 +0300 Subject: [PATCH] Show fast share button in personal chats. --- Telegram/SourceFiles/history/view/history_view_message.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index e748fdab5a..d4aa03090c 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -1349,7 +1349,11 @@ bool Message::displayFastShare() const { if (peer->isChannel()) { return !peer->isMegagroup(); } else if (const auto user = peer->asUser()) { - if (user->botInfo && !item->out()) { + if (const auto forwarded = item->Get()) { + return !peer->isSelf() + && forwarded->originalSender->isChannel() + && !forwarded->originalSender->isMegagroup(); + } else if (user->botInfo && !item->out()) { if (const auto media = this->media()) { return media->allowsFastShare(); }