Correct view of welcome messages.

This commit is contained in:
John Preston
2026-07-24 12:54:01 +04:00
parent 545dbe79d2
commit e5bcebc8aa
2 changed files with 4 additions and 2 deletions

View File

@@ -213,6 +213,7 @@ void SendExistingMedia(
auto flags = NewMessageFlags(peer);
auto sendFlags = MTPmessages_SendMedia::Flags(0);
if (welcomeTemplate) {
flags &= ~MessageFlag::Outgoing;
flags |= MessageFlag::FakeHistoryItem;
}
if (action.replyTo) {
@@ -662,6 +663,7 @@ void SendConfirmedFile(
auto flags = isEditing ? MessageFlags() : NewMessageFlags(peer);
if (welcomeTemplate) {
flags &= ~MessageFlag::Outgoing;
flags |= MessageFlag::FakeHistoryItem;
}
if (file->to.replyTo) {