Removed differentiation of replies by color in channels.

This commit is contained in:
23rd 2022-11-24 18:51:54 +03:00
parent 53c4b511f8
commit b9003202bf
1 changed files with 3 additions and 2 deletions

View File

@ -296,8 +296,9 @@ bool HistoryMessageReply::updateData(
}
{
const auto peerId = replyToMsg->fullId().peer;
replyToColorKey = (peerIsChannel(peerId) || peerIsChat(peerId))
const auto peer = replyToMsg->history()->peer;
replyToColorKey = (!holder->out()
&& (peer->isMegagroup() || peer->isChat()))
? replyToMsg->from()->id
: PeerId(0);
}