Support pin/folder actions for community.

This commit is contained in:
John Preston
2026-06-19 17:43:23 +04:00
parent a0fd43642a
commit eef22271e0
33 changed files with 539 additions and 175 deletions
@@ -620,13 +620,18 @@ void PaintRow(
st::dialogsTextFont->height);
PaintFolderEntryText(p, folder, context, rect);
} else if (const auto info = CommunityListInfo(history)) {
// Unlike the Archive folder (fixed on top), a collapsed community is
// a movable pinned entry, so it shows the pinned icon when pinned and
// without an unread counter, exactly like an ordinary chat.
const auto displayPinnedIcon = entry->isPinnedDialog(context.filter)
&& (context.filter || !entry->fixedOnTopIndex());
const auto availableWidth = PaintWideCounter(
p,
context,
badgesState,
texttop,
namewidth,
false);
displayPinnedIcon);
const auto rect = QRect(
nameleft,
texttop,