diff --git a/app/javascript/ui/MessageList.vue b/app/javascript/ui/MessageList.vue index 061cc13dd..90d12fd74 100644 --- a/app/javascript/ui/MessageList.vue +++ b/app/javascript/ui/MessageList.vue @@ -53,6 +53,11 @@ const allMessages = computed(() => { return useCamelCase(conversation.value.messages, { deep: true }).reverse(); }); +const disablePrivateNote = computed(() => { + // eslint-disable-next-line no-underscore-dangle + return window.__EDITOR_DISABLE_PRIVATE_NOTE__ === true; +}); + const fetchMore = async () => { if (isFetching.value) return; if (!conversation?.value?.id) return; @@ -99,7 +104,11 @@ useInfiniteScroll(messageListRef, useThrottleFn(fetchMore, 1000), {