mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-08 20:53:54 +00:00
Support pin/folder actions for community.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user