mirror of https://github.com/procxx/kepka.git
Forwarding of a single message fixed.
This commit is contained in:
parent
0110a62776
commit
1f7e6af2c5
|
@ -6769,6 +6769,11 @@ HistoryMessage::HistoryMessage(History *history, MsgId id, MTPDmessage::Flags fl
|
||||||
: HistoryItem(history, id, newForwardedFlags(history->peer, from, fwd) | flags, date, from) {
|
: HistoryItem(history, id, newForwardedFlags(history->peer, from, fwd) | flags, date, from) {
|
||||||
CreateConfig config;
|
CreateConfig config;
|
||||||
|
|
||||||
|
config.authorIdOriginal = fwd->authorOriginal()->id;
|
||||||
|
config.fromIdOriginal = fwd->fromOriginal()->id;
|
||||||
|
if (fwd->authorOriginal()->isChannel()) {
|
||||||
|
config.originalId = fwd->id;
|
||||||
|
}
|
||||||
UserData *fwdViaBot = fwd->viaBot();
|
UserData *fwdViaBot = fwd->viaBot();
|
||||||
if (fwdViaBot) config.viaBotId = peerToUser(fwdViaBot->id);
|
if (fwdViaBot) config.viaBotId = peerToUser(fwdViaBot->id);
|
||||||
int fwdViewsCount = fwd->viewsCount();
|
int fwdViewsCount = fwd->viewsCount();
|
||||||
|
|
Loading…
Reference in New Issue