From 654fefaa7297dd72dc56e3682dad96f2cb6116a8 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 22 Jun 2022 12:07:39 +0400 Subject: [PATCH] Fix custom rank display in profile members dropdown. --- Telegram/SourceFiles/profile/profile_block_group_members.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/profile/profile_block_group_members.cpp b/Telegram/SourceFiles/profile/profile_block_group_members.cpp index 96736fb57..3780d8dd3 100644 --- a/Telegram/SourceFiles/profile/profile_block_group_members.cpp +++ b/Telegram/SourceFiles/profile/profile_block_group_members.cpp @@ -402,7 +402,7 @@ void GroupMembersWidget::setItemFlags( const auto rankIt = megagroup->mgInfo->admins.find(peerToUser(user->id)); const auto adminCanEdit = isAdmin && adminIt->second.canEdit; const auto rank = (amCreator || isCreator) - ? (megagroup->mgInfo->creatorRank.isEmpty() + ? (!megagroup->mgInfo->creatorRank.isEmpty() ? megagroup->mgInfo->creatorRank : tr::lng_owner_badge(tr::now)) : (amAdmin || isAdmin)