Fix go to original button in outgoing albums.

This commit is contained in:
John Preston 2020-10-29 20:04:18 +03:00
parent c35b6e1209
commit 324affb8b9

View file

@ -2251,7 +2251,7 @@ bool Message::displayFastShare() const {
bool Message::displayGoToOriginal() const { bool Message::displayGoToOriginal() const {
if (context() == Context::Pinned) { if (context() == Context::Pinned) {
return true; return !hasOutLayout();
} }
const auto item = message(); const auto item = message();
if (const auto forwarded = item->Get<HistoryMessageForwarded>()) { if (const auto forwarded = item->Get<HistoryMessageForwarded>()) {