|
|
@ -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);
|
|
|
|