Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 17f2e39

Browse files
authored
1 parent 135ff28 commit 17f2e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/repositories/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class UserRepository extends Repository<User> {
147147
}
148148

149149
public getOnlineStatus(user: User): string {
150-
if (user.hideOnlineStatus == null) return 'unknown';
150+
if (user.hideOnlineStatus) return 'unknown';
151151
if (user.lastActiveDate == null) return 'unknown';
152152
const elapsed = Date.now() - user.lastActiveDate.getTime();
153153
return (

0 commit comments

Comments
 (0)