From 199df6b72945b31ec361f0fb1d85a92694349fbc Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Tue, 22 Jan 2019 16:33:20 +0200 Subject: [PATCH] Fix hasRoleInChannel --- client/css/style.css | 4 ---- client/js/utils.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index df1db406..44677dc2 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -1566,10 +1566,6 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */ -webkit-overflow-scrolling: touch; } -#chat .names-filtered { - display: none; -} - #chat .names .user { display: block; line-height: 1.6; diff --git a/client/js/utils.js b/client/js/utils.js index 015ab6f5..f3c73a8d 100644 --- a/client/js/utils.js +++ b/client/js/utils.js @@ -37,7 +37,7 @@ function hasRoleInChannel(channel, roles, nick) { const channelID = channel.attr("data-id"); const network = $("#sidebar .network").has(`.chan[data-id="${channelID}"]`); const target = nick || network.attr("data-nick"); - const user = channel.find(`.names-original .user[data-name="${escape(target)}"]`).first(); + const user = channel.find(`.names .user[data-name="${escape(target)}"]`).first(); return user.parent().is("." + roles.join(", .")); }