Fix segfault opening conversation details when no XEP-0191 support (#1513)

fixes #1508
This commit is contained in:
eerielili 2023-12-10 12:28:22 +00:00 committed by GitHub
parent 85ea7e5008
commit 4689fcb53c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,11 @@ public class Module : XmppStreamModule, Iq.Handler {
public signal void unblock_all_received(XmppStream stream); public signal void unblock_all_received(XmppStream stream);
public bool is_blocked(XmppStream stream, string jid) { public bool is_blocked(XmppStream stream, string jid) {
if (is_supported(stream)) {
return stream.get_flag(Flag.IDENTITY).blocklist.contains(jid); return stream.get_flag(Flag.IDENTITY).blocklist.contains(jid);
} else {
return false;
}
} }
public bool block(XmppStream stream, string[] jids) { public bool block(XmppStream stream, string[] jids) {