web: use last-seen-recently fallback in private chat status
Some checks are pending
CI / test (push) Has started running
Some checks are pending
CI / test (push) Has started running
This commit is contained in:
@@ -645,7 +645,7 @@ export function ChatInfoPanel({ chatId, open, onClose }: Props) {
|
||||
? "User is online"
|
||||
: chat.counterpart_last_seen_at
|
||||
? `Last seen ${formatLastSeen(chat.counterpart_last_seen_at)}`
|
||||
: "User is offline"}
|
||||
: "Last seen recently"}
|
||||
</p>
|
||||
) : (
|
||||
<p className="text-sm text-slate-300">No extra information.</p>
|
||||
@@ -1304,7 +1304,7 @@ function privateChatStatusLabel(chat: { counterpart_is_online?: boolean | null;
|
||||
if (chat.counterpart_last_seen_at) {
|
||||
return `last seen ${formatLastSeen(chat.counterpart_last_seen_at)}`;
|
||||
}
|
||||
return "offline";
|
||||
return "last seen recently";
|
||||
}
|
||||
|
||||
function initialsFromName(value: string): string {
|
||||
|
||||
@@ -873,7 +873,7 @@ function chatMetaLabel(chat: {
|
||||
if (chat.counterpart_last_seen_at) {
|
||||
return `last seen ${formatLastSeen(chat.counterpart_last_seen_at)}`;
|
||||
}
|
||||
return "offline";
|
||||
return "last seen recently";
|
||||
}
|
||||
if (chat.type === "group") {
|
||||
const members = chat.members_count ?? 0;
|
||||
|
||||
@@ -301,7 +301,7 @@ function headerMetaLabel(chat: {
|
||||
if (chat.counterpart_last_seen_at) {
|
||||
return `last seen ${formatLastSeen(chat.counterpart_last_seen_at)}`;
|
||||
}
|
||||
return "offline";
|
||||
return "last seen recently";
|
||||
}
|
||||
if (chat.type === "group") {
|
||||
const members = chat.members_count ?? 0;
|
||||
|
||||
Reference in New Issue
Block a user