ChannelTabs: Remove isPomelo

This commit is contained in:
thororen1234 2025-07-29 17:13:20 -04:00
parent e39824e65e
commit d9a23c110e
No known key found for this signature in database

View file

@ -142,7 +142,7 @@ function ChannelTabContent(props: ChannelTabsProps & {
if (channel && recipients?.length) {
if (recipients.length === 1) {
const user = UserStore.getUser(recipients[0]) as User & { globalName: string, isPomelo(): boolean; };
const user = UserStore.getUser(recipients[0]) as User & { globalName: string; };
const username = noPomeloNames
? user.globalName || user.username
: getUniqueUsername(user);
@ -156,7 +156,7 @@ function ChannelTabContent(props: ChannelTabsProps & {
isTyping={isTyping}
isMobile={isMobile}
/>
{!compact && <Text className={cl("name-text")} data-pomelo={user.isPomelo()}>
{!compact && <Text className={cl("name-text")}>
{username}
</Text>}
<NotificationDot channelIds={[channel.id]} />