Fix leaving closed groups

pull/877/head
Mikunj 5 years ago
parent cef644b637
commit c6be289092

@ -221,9 +221,7 @@
return !!(this.id && this.id.match(/^publicChat:/)); return !!(this.id && this.id.match(/^publicChat:/));
}, },
isClosedGroup() { isClosedGroup() {
return ( return this.get('type') === Message.GROUP && !this.isPublic() && !this.isRss();
this.get('type') === Message.GROUP && !this.isPublic() && !this.isRss()
);
}, },
isClosable() { isClosable() {
return !this.isRss() || this.get('closable'); return !this.isRss() || this.get('closable');

Loading…
Cancel
Save