Treat community rows like forums in forward boxes.

This commit is contained in:
John Preston
2026-07-17 18:16:30 +04:00
parent 3a8154f435
commit 4e5f92b2d0
4 changed files with 18 additions and 23 deletions
-13
View File
@@ -68,19 +68,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtGui/QGuiApplication>
#include <QtGui/QClipboard>
namespace {
[[nodiscard]] Data::CommunityInfo *JoinedCommunityChats(
not_null<PeerData*> peer) {
const auto channel = peer->asChannel();
const auto info = (channel && channel->isCommunity())
? channel->communityInfo()
: nullptr;
return (info && !info->histories().empty()) ? info : nullptr;
}
} // namespace
class ShareBox::Inner final : public Ui::RpWidget {
public:
Inner(