fix(client): fix lint issues in scripts (#8621)

This commit is contained in:
Andreas Nedbal
2022-05-07 07:19:15 +02:00
committed by GitHub
parent ad860905c6
commit a975a0971c
17 changed files with 75 additions and 85 deletions

View File

@ -169,7 +169,7 @@ export function getUserMenu(user) {
action: () => {
os.post({ specified: user });
}
}, meId != user.id ? {
}, meId !== user.id ? {
type: 'link',
icon: 'fas fa-comments',
text: i18n.ts.startMessaging,
@ -178,13 +178,13 @@ export function getUserMenu(user) {
icon: 'fas fa-list-ul',
text: i18n.ts.addToList,
action: pushList
}, meId != user.id ? {
}, meId !== user.id ? {
icon: 'fas fa-users',
text: i18n.ts.inviteToGroup,
action: inviteGroup
} : undefined] as any;
if ($i && meId != user.id) {
if ($i && meId !== user.id) {
menu = menu.concat([null, {
icon: user.isMuted ? 'fas fa-eye' : 'fas fa-eye-slash',
text: user.isMuted ? i18n.ts.unmute : i18n.ts.mute,