Enable hide nick avatar event by default

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2022-03-14 17:48:27 +05:30
parent 211fd19031
commit 27a06ae90c

View file

@ -97,8 +97,8 @@ class Settings extends EventEmitter {
if (typeof this.hideNickAvatarEvents === 'boolean') return this.hideNickAvatarEvents;
const settings = getSettings();
if (settings === null) return false;
if (typeof settings.hideNickAvatarEvents === 'undefined') return false;
if (settings === null) return true;
if (typeof settings.hideNickAvatarEvents === 'undefined') return true;
return settings.hideNickAvatarEvents;
}