2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Add monoforum sender bar divider.

This commit is contained in:
John Preston
2025-05-12 12:41:00 +04:00
parent c6d43a802c
commit 43b4499125
27 changed files with 388 additions and 90 deletions

View File

@@ -65,8 +65,7 @@ MTPInputReplyTo ReplyToForMTP(
: replyTo.monoforumPeerId
? history->owner().peer(replyTo.monoforumPeerId).get()
: history->session().user().get();
const auto replyToMonoforumPeer = (history->peer->isChannel()
&& history->peer->asChannel()->requiresMonoforumPeer())
const auto replyToMonoforumPeer = history->peer->amMonoforumAdmin()
? possibleMonoforumPeer
: nullptr;
const auto external = replyTo.messageId
@@ -98,8 +97,7 @@ MTPInputReplyTo ReplyToForMTP(
(replyToMonoforumPeer
? replyToMonoforumPeer->input
: MTPInputPeer()));
} else if (history->peer->isChannel()
&& history->peer->asChannel()->requiresMonoforumPeer()
} else if (history->peer->amMonoforumAdmin()
&& replyTo.monoforumPeerId) {
const auto replyToMonoforumPeer = replyTo.monoforumPeerId
? history->owner().peer(replyTo.monoforumPeerId)