++ diffusori
fixed user chip
This commit is contained in:
@@ -3614,7 +3614,7 @@ export const tools = {
|
||||
return date.addToDate(mydate, { days })
|
||||
},
|
||||
|
||||
isUserOnline(user: IUserFields) {
|
||||
isUserOnline(user: IUserFields, col: any = null) {
|
||||
const dateonline = tools.addDays(tools.getDateNow(), -1)
|
||||
return user.lasttimeonline && new Date(user.lasttimeonline).getTime() > dateonline.getTime()
|
||||
},
|
||||
@@ -7344,18 +7344,18 @@ export const tools = {
|
||||
return ''
|
||||
},
|
||||
|
||||
getNameToShow(user: IUserFields): string {
|
||||
getNameToShow(user: IUserFields, col: any = null): string {
|
||||
const userStore = useUserStore()
|
||||
|
||||
let name = userStore.getNameToShow(user)
|
||||
let name = userStore.getNameToShow(user, col)
|
||||
|
||||
return name
|
||||
},
|
||||
|
||||
getUserNameOnlyIfToShow(user: IUserFields): string {
|
||||
getUserNameOnlyIfToShow(user: IUserFields, col: any = null): string {
|
||||
const userStore = useUserStore()
|
||||
|
||||
let name = userStore.getUserNameOnlyIfToShow(user)
|
||||
let name = userStore.getUserNameOnlyIfToShow(user, col)
|
||||
|
||||
return name
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user