style: if block
This commit is contained in:
@@ -57,8 +57,9 @@ export default {
|
||||
// if the current chat is not loaded, assume we can reply
|
||||
// this avoids rendering the editor with is-private yellow bg
|
||||
// optimisitaclly defaulting to reply editor
|
||||
if (!this.currentChat || !Object.keys(this.currentChat).length)
|
||||
if (!this.currentChat || !Object.keys(this.currentChat).length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.currentChat.can_reply) {
|
||||
return this.isOnPrivateNote;
|
||||
|
||||
Reference in New Issue
Block a user