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');
},
isPublic() {
return this.id && this.id.match(/^publicChat:/);
return !!(this.id && this.id.match(/^publicChat:/));
},
isClosable() {
return !this.isRss() || this.get('closable');
},
isRss() {
return this.id && this.id.match(/^rss:/);
return !!(this.id && this.id.match(/^rss:/));
},
isBlocked() {
return BlockedNumberController.isBlocked(this.id);

Loading…
Cancel
Save