diff --git a/src/components/MessageList.vue b/src/components/MessageList.vue index 63f4eef..f030de9 100644 --- a/src/components/MessageList.vue +++ b/src/components/MessageList.vue @@ -116,6 +116,11 @@ const readCount = computed(() => { const totalCount = computed(() => { return props.selectedCollection?.properties.total ?? 0 }) + +// True only when the collection explicitly provides total/unread counts +const hasCountData = computed(() => { + return props.selectedCollection?.properties.total != null +})