make sure isPublic/isRss are boolean values

pull/696/head
Ryan Tharp 5 years ago
parent 26ea0d3ce4
commit e7a08b696b

@ -210,13 +210,13 @@
return this.id === window.storage.get('primaryDevicePubKey'); return this.id === window.storage.get('primaryDevicePubKey');
}, },
isPublic() { isPublic() {
return this.id && this.id.match(/^publicChat:/); return !!(this.id && this.id.match(/^publicChat:/));
}, },
isClosable() { isClosable() {
return !this.isRss() || this.get('closable'); return !this.isRss() || this.get('closable');
}, },
isRss() { isRss() {
return this.id && this.id.match(/^rss:/); return !!(this.id && this.id.match(/^rss:/));
}, },
isBlocked() { isBlocked() {
return BlockedNumberController.isBlocked(this.id); return BlockedNumberController.isBlocked(this.id);

Loading…
Cancel
Save