fix: editor loads with private note color

This commit is contained in:
Shivam Mishra
2025-05-19 16:10:51 +05:30
parent 461f1b3bf0
commit 59790e38da
+8 -1
View File
@@ -54,9 +54,16 @@ export default {
return true;
},
isPrivate() {
if (this.currentChat.can_reply || this.isAWhatsAppChannel) {
// 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)
return false;
if (this.currentChat.can_reply) {
return this.isOnPrivateNote;
}
return true;
},
inboxId() {