Przeglądaj źródła

fix #1947: Fix custom channel filters

tags/v0.12.0
kckckc 1 rok temu
rodzic
commit
e1fa2cf6f0
1 zmienionych plików z 4 dodań i 2 usunięć
  1. +4
    -2
      src/client/ui/templates/messages/messages.js

+ 4
- 2
src/client/ui/templates/messages/messages.js Wyświetl plik

@@ -242,10 +242,12 @@ define([
}

if (m.type) {
let isChannel = (['info', 'chat', 'loot', 'rep'].indexOf(m.type) === -1);
const isChannel = m?.subType === 'custom';
if (isChannel) {
if (this.find('.filter[filter="' + m.type + '"]').hasClass('active'))
if (this.find('.filter[filter="' + m.channel + '"]').hasClass('active'))
el.show();
else
el.hide();
}

if (isMobile && ['loot', 'info'].indexOf(m.type) !== -1) {


Ładowanie…
Anuluj
Zapisz