mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-23 06:02:49 +02:00
Allow replying in monoforum while not in it.
This commit is contained in:
parent
f4582ddf36
commit
d156de05a5
2 changed files with 2 additions and 7 deletions
|
@ -2896,10 +2896,7 @@ bool History::shouldBeInChatList() const {
|
|||
} else if (isPinnedDialog(FilterId())) {
|
||||
return true;
|
||||
} else if (const auto channel = peer->asChannel()) {
|
||||
if (channel->isMonoforum()) {
|
||||
return !lastMessageKnown()
|
||||
|| (lastMessage() != nullptr);
|
||||
} else if (!channel->amIn()) {
|
||||
if (!channel->amIn()) {
|
||||
return isTopPromoted();
|
||||
}
|
||||
} else if (const auto chat = peer->asChat()) {
|
||||
|
|
|
@ -4970,9 +4970,7 @@ bool CanSendReply(not_null<const HistoryItem*> item) {
|
|||
return false;
|
||||
} else if (const auto channel = peer->asChannel()) {
|
||||
if (const auto sublist = item->savedSublist()) {
|
||||
if (sublist->sublistPeer() == peer) {
|
||||
return false;
|
||||
}
|
||||
return (sublist->sublistPeer() != peer);
|
||||
}
|
||||
return channel->amIn();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue