ChannelTabs: Remove isPomelo
This commit is contained in:
parent
e39824e65e
commit
d9a23c110e
1 changed files with 2 additions and 2 deletions
|
|
@ -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]} />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue