Skip to content

Commit

Permalink
fixed read history on msg forward
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Oct 17, 2014
1 parent 8c668cf commit 21a7e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Telegram/SourceFiles/historywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();

Expand Down

0 comments on commit 21a7e02

Please sign in to comment.