diff --git a/packages/web/src/components/chat/FriendsPage.tsx b/packages/web/src/components/chat/FriendsPage.tsx index 2a38f627..4b7cb614 100644 --- a/packages/web/src/components/chat/FriendsPage.tsx +++ b/packages/web/src/components/chat/FriendsPage.tsx @@ -19,6 +19,8 @@ import { getPrimaryActivity } from '@backspace/shared/src/activities.js'; import { parseFederatedUsername } from '../../utils/identity'; import { Username } from '../ui/Username'; +const statusLabel: Record = { online: 'Online', idle: 'Idle', dnd: 'Do Not Disturb', offline: 'Offline' }; + type Tab = 'online' | 'all' | 'pending' | 'add' | 'activity'; interface FriendsPageProps { @@ -288,7 +290,7 @@ export function FriendsPage({ mobile }: FriendsPageProps) { Friends ) : ( -
+
@@ -894,17 +896,17 @@ function FriendItem({ friend, onRemove, onDm }: { friend: TaggedFriend, onRemove
{friendDisplayName} - @{friend.username} + @{friend.username}
- {friend.status} + {statusLabel[friend.status] ?? friend.status} {instanceLabel && ( via {instanceLabel} )}
-
+