mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Don't generate joined message in monoforums.
This commit is contained in:
@@ -3440,9 +3440,10 @@ Data::HistoryMessages *History::maybeMessages() {
|
||||
HistoryItem *History::insertJoinedMessage() {
|
||||
const auto channel = peer->asChannel();
|
||||
if (!channel
|
||||
|| channel->isMonoforum()
|
||||
|| _joinedMessage
|
||||
|| !channel->amIn()
|
||||
|| (peer->isMegagroup()
|
||||
|| (channel->isMegagroup()
|
||||
&& channel->mgInfo->joinedMessageFound)) {
|
||||
return _joinedMessage;
|
||||
}
|
||||
|
Reference in New Issue
Block a user