fix: viewed just now

This commit is contained in:
Apoorv Mishra committed 2023-07-20 14:28:33 +05:30
1 parent d123cd6bfb
commit e6f1a06e07
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ router.post(
const lastActiveAt = mentionedUser.lastActiveAt;
let description;
if (lastViewedAt && differenceInMinutes(new Date(), lastViewedAt) < 5) {
description = t("Currently viewing", { ...opts(user) });
description = t("Viewed just now", { ...opts(user) });
} else if (
lastActiveAt &&
differenceInMinutes(new Date(), lastActiveAt) < 5
@@ -899,6 +899,7 @@
"Webhooks can be used to notify your application when events happen in {{appName}}. Events are sent as a https request with a JSON payload in near real-time.": "Webhooks can be used to notify your application when events happen in {{appName}}. Events are sent as a https request with a JSON payload in near real-time.",
"Inactive": "Inactive",
"Create a webhook": "Create a webhook",
"Viewed just now": "Viewed just now",
"Online now • Viewed {{ lastViewedAt }}": "Online now • Viewed {{ lastViewedAt }}",
"Online now • Never viewed": "Online now • Never viewed",
"Online {{ lastActiveAt }} • Viewed {{ lastViewedAt }}": "Online {{ lastActiveAt }} • Viewed {{ lastViewedAt }}",