From 1f7e6af2c563de2e8e47d89faa9addda760d69c0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 9 Apr 2016 15:08:19 +0400 Subject: [PATCH] Forwarding of a single message fixed. --- Telegram/SourceFiles/history.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Telegram/SourceFiles/history.cpp b/Telegram/SourceFiles/history.cpp index bfaa9caf54..daeba26ceb 100644 --- a/Telegram/SourceFiles/history.cpp +++ b/Telegram/SourceFiles/history.cpp @@ -6769,6 +6769,11 @@ HistoryMessage::HistoryMessage(History *history, MsgId id, MTPDmessage::Flags fl : HistoryItem(history, id, newForwardedFlags(history->peer, from, fwd) | flags, date, from) { CreateConfig config; + config.authorIdOriginal = fwd->authorOriginal()->id; + config.fromIdOriginal = fwd->fromOriginal()->id; + if (fwd->authorOriginal()->isChannel()) { + config.originalId = fwd->id; + } UserData *fwdViaBot = fwd->viaBot(); if (fwdViaBot) config.viaBotId = peerToUser(fwdViaBot->id); int fwdViewsCount = fwd->viewsCount();