From 21a7e0243cb591ad17621ab313b77194359af8f3 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 17 Oct 2014 19:18:57 +0400 Subject: [PATCH] fixed read history on msg forward --- Telegram/SourceFiles/historywidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/historywidget.cpp b/Telegram/SourceFiles/historywidget.cpp index b68727958..7ae355028 100644 --- a/Telegram/SourceFiles/historywidget.cpp +++ b/Telegram/SourceFiles/historywidget.cpp @@ -2235,7 +2235,7 @@ mtpRequestId HistoryWidget::onForward(const PeerId &peer, SelectedItemSet toForw hist->loadAround(0); if (item->id > 0 && msg) { - App::main()->readServerHistory(item->history(), false); + App::main()->readServerHistory(hist, false); newId = clientMsgId(); hist->addToBackForwarded(newId, msg); @@ -2244,7 +2244,7 @@ mtpRequestId HistoryWidget::onForward(const PeerId &peer, SelectedItemSet toForw // newId = clientMsgId(); // MTP::send(MTPmessages_ForwardMessage(histPeer->input, MTP_int(item->id), MTP_long(randomId)), App::main()->rpcDone(&MainWidget::sentFullDataReceived, randomId)); } else if (msg) { - App::main()->readServerHistory(item->history(), false); + App::main()->readServerHistory(hist, false); newId = clientMsgId();