Fix segfault opening conversation details when no XEP-0191 support (#1513)
fixes #1508
This commit is contained in:
parent
85ea7e5008
commit
4689fcb53c
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue