diff options
author | eerielili <lionel@les-miquelots.net> | 2023-12-10 12:28:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-10 13:28:22 +0100 |
commit | 4689fcb53c3bd55411b2ada02350e6442d82fe25 (patch) | |
tree | 529a745d70ec07b0457b47be4248bd9684dd068d /xmpp-vala/src | |
parent | 85ea7e50083be4be11a675c83835e2f1f957d0dc (diff) | |
download | dino-4689fcb53c3bd55411b2ada02350e6442d82fe25.tar.gz dino-4689fcb53c3bd55411b2ada02350e6442d82fe25.zip |
Fix segfault opening conversation details when no XEP-0191 support (#1513)
fixes #1508
Diffstat (limited to 'xmpp-vala/src')
-rw-r--r-- | xmpp-vala/src/module/xep/0191_blocking_command.vala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/xep/0191_blocking_command.vala b/xmpp-vala/src/module/xep/0191_blocking_command.vala index 987f538a..9e5ede78 100644 --- a/xmpp-vala/src/module/xep/0191_blocking_command.vala +++ b/xmpp-vala/src/module/xep/0191_blocking_command.vala @@ -12,7 +12,11 @@ public class Module : XmppStreamModule, Iq.Handler { public signal void unblock_all_received(XmppStream stream); public bool is_blocked(XmppStream stream, string jid) { - return stream.get_flag(Flag.IDENTITY).blocklist.contains(jid); + if (is_supported(stream)) { + return stream.get_flag(Flag.IDENTITY).blocklist.contains(jid); + } else { + return false; + } } public bool block(XmppStream stream, string[] jids) { |