mirror of https://github.com/procxx/kepka.git
fixed read history on msg forward
This commit is contained in:
parent
8c668cfa24
commit
21a7e0243c
|
@ -2235,7 +2235,7 @@ mtpRequestId HistoryWidget::onForward(const PeerId &peer, SelectedItemSet toForw
|
||||||
|
|
||||||
hist->loadAround(0);
|
hist->loadAround(0);
|
||||||
if (item->id > 0 && msg) {
|
if (item->id > 0 && msg) {
|
||||||
App::main()->readServerHistory(item->history(), false);
|
App::main()->readServerHistory(hist, false);
|
||||||
|
|
||||||
newId = clientMsgId();
|
newId = clientMsgId();
|
||||||
hist->addToBackForwarded(newId, msg);
|
hist->addToBackForwarded(newId, msg);
|
||||||
|
@ -2244,7 +2244,7 @@ mtpRequestId HistoryWidget::onForward(const PeerId &peer, SelectedItemSet toForw
|
||||||
// newId = clientMsgId();
|
// newId = clientMsgId();
|
||||||
// MTP::send(MTPmessages_ForwardMessage(histPeer->input, MTP_int(item->id), MTP_long(randomId)), App::main()->rpcDone(&MainWidget::sentFullDataReceived, randomId));
|
// MTP::send(MTPmessages_ForwardMessage(histPeer->input, MTP_int(item->id), MTP_long(randomId)), App::main()->rpcDone(&MainWidget::sentFullDataReceived, randomId));
|
||||||
} else if (msg) {
|
} else if (msg) {
|
||||||
App::main()->readServerHistory(item->history(), false);
|
App::main()->readServerHistory(hist, false);
|
||||||
|
|
||||||
newId = clientMsgId();
|
newId = clientMsgId();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue