From 81e05e6645e2bea08c73432c1b41ae6b73bd464f Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 1 Nov 2017 18:49:53 +0100 Subject: small fixes --- xmpp-vala/src/module/xep/0191_blocking_command.vala | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'xmpp-vala/src/module') diff --git a/xmpp-vala/src/module/xep/0191_blocking_command.vala b/xmpp-vala/src/module/xep/0191_blocking_command.vala index 53d7bb7b..1520577f 100644 --- a/xmpp-vala/src/module/xep/0191_blocking_command.vala +++ b/xmpp-vala/src/module/xep/0191_blocking_command.vala @@ -14,10 +14,7 @@ public class Module : XmppStreamModule, Iq.Handler { public signal void unblock_all_received(XmppStream stream); public bool is_blocked(XmppStream stream, string jid) { - foreach (string blocked in stream.get_flag(Flag.IDENTITY).blocklist) { - if (blocked.contains(jid)) return true; - } - return false; + return stream.get_flag(Flag.IDENTITY).blocklist.contains(jid); } public bool block(XmppStream stream, Gee.List jids) { -- cgit v1.2.3-70-g09d2