1
0
mirror of https://github.com/flarum/core.git synced 2025-07-16 22:31:18 +02:00

Merge remote-tracking branch 'origin/main'

This commit is contained in:
Sami Mazouz
2022-11-16 11:22:47 +01:00
5 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
import type Mithril from 'mithril';
import User from '../models/User';
/**
* The `useronline` helper displays a green circle if the user is online
* The `useronline` helper displays a green circle if the user is online.
*/
export default function userOnline(user: User): Mithril.Vnode<{}, {}> | null;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -3,7 +3,7 @@ import User from '../models/User';
import icon from './icon';
/**
* The `useronline` helper displays a green circle if the user is online
* The `useronline` helper displays a green circle if the user is online.
*/
export default function userOnline(user: User): Mithril.Vnode<{}, {}> | null {
if (user.lastSeenAt() && user.isOnline()) {