fixed read history on msg forward

This commit is contained in:
John Preston 2014-10-17 19:18:57 +04:00
parent 8c668cfa24
commit 21a7e0243c

View File

@ -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();