web: use last-seen-recently fallback in private chat status
Some checks are pending
CI / test (push) Has started running

This commit is contained in:
2026-03-08 22:47:16 +03:00
parent 9f8bcb5724
commit 8fcd2156c6
4 changed files with 5 additions and 5 deletions

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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;