mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-26 23:43:06 +02:00
Don't generate joined message in monoforums.
This commit is contained in:
parent
4e5082f6c6
commit
9316480884
1 changed files with 2 additions and 1 deletions
|
@ -3440,9 +3440,10 @@ Data::HistoryMessages *History::maybeMessages() {
|
||||||
HistoryItem *History::insertJoinedMessage() {
|
HistoryItem *History::insertJoinedMessage() {
|
||||||
const auto channel = peer->asChannel();
|
const auto channel = peer->asChannel();
|
||||||
if (!channel
|
if (!channel
|
||||||
|
|| channel->isMonoforum()
|
||||||
|| _joinedMessage
|
|| _joinedMessage
|
||||||
|| !channel->amIn()
|
|| !channel->amIn()
|
||||||
|| (peer->isMegagroup()
|
|| (channel->isMegagroup()
|
||||||
&& channel->mgInfo->joinedMessageFound)) {
|
&& channel->mgInfo->joinedMessageFound)) {
|
||||||
return _joinedMessage;
|
return _joinedMessage;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue