mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-23 00:15:13 +00:00
fix #7466
This commit is contained in:
parent
135ff280b9
commit
17f2e39084
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ export class UserRepository extends Repository<User> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public getOnlineStatus(user: User): string {
|
public getOnlineStatus(user: User): string {
|
||||||
if (user.hideOnlineStatus == null) return 'unknown';
|
if (user.hideOnlineStatus) return 'unknown';
|
||||||
if (user.lastActiveDate == null) return 'unknown';
|
if (user.lastActiveDate == null) return 'unknown';
|
||||||
const elapsed = Date.now() - user.lastActiveDate.getTime();
|
const elapsed = Date.now() - user.lastActiveDate.getTime();
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue