mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-16 04:02:09 +00:00
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) {
|
||||
CreateConfig config;
|
||||
|
||||
config.authorIdOriginal = fwd->authorOriginal()->id;
|
||||
config.fromIdOriginal = fwd->fromOriginal()->id;
|
||||
if (fwd->authorOriginal()->isChannel()) {
|
||||
config.originalId = fwd->id;
|
||||
}
|
||||
UserData *fwdViaBot = fwd->viaBot();
|
||||
if (fwdViaBot) config.viaBotId = peerToUser(fwdViaBot->id);
|
||||
int fwdViewsCount = fwd->viewsCount();
|
||||
|
Loading…
Reference in New Issue
Block a user