diff --git a/app/models/User.ts b/app/models/User.ts
index 4a11296dba..63fbc77e3a 100644
--- a/app/models/User.ts
+++ b/app/models/User.ts
@@ -58,7 +58,23 @@ class User extends ParanoidModel implements Searchable {
role: UserRole;
@observable
- lastActiveAt: string;
+ protected _lastActiveAt: string;
+
+ /**
+ * The last time the user was active. For the currently signed-in user, this
+ * always returns the current date so they always appear as recently active.
+ */
+ @computed
+ get lastActiveAt(): string {
+ if (this.store.rootStore.auth?.currentUserId === this.id) {
+ return new Date(now(60000)).toISOString();
+ }
+ return this._lastActiveAt;
+ }
+
+ set lastActiveAt(value: string) {
+ this._lastActiveAt = value;
+ }
@observable
isSuspended: boolean;
diff --git a/app/scenes/Settings/components/MembersTable.tsx b/app/scenes/Settings/components/MembersTable.tsx
index 567a606f7b..5f3851f84f 100644
--- a/app/scenes/Settings/components/MembersTable.tsx
+++ b/app/scenes/Settings/components/MembersTable.tsx
@@ -110,7 +110,7 @@ export function MembersTable({ canManage, ...rest }: Props) {
accessor: (user) => user.lastActiveAt,
component: (user) =>
user.lastActiveAt ? (
-
+
) : null,
width: "2fr",
},