mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Allow replying in monoforum while not in it.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user