mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Forwarding of a single message fixed.
This commit is contained in:
parent
0110a62776
commit
1f7e6af2c5
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue