diff --git a/components/chat/ChatLobby.vue b/components/chat/ChatLobby.vue index 7b1c06e3b..b0175e4bc 100644 --- a/components/chat/ChatLobby.vue +++ b/components/chat/ChatLobby.vue @@ -108,6 +108,8 @@ import Empty from "~/components/ui/empty/Empty.vue"; :is-minimized="isMinimized" class="min-h-0 flex-1 overflow-y-auto" :last-read-count="lastReadMessageCount" + :message-room="messageRoom" + :can-moderate="canModerate" @bottom-state-change="handleBottomStateChange" /> @@ -147,7 +149,7 @@ import Empty from "~/components/ui/empty/Empty.vue";
- {{ readonlyHint || $t("chat.readonly") }} + {{ readonlyText }}
@@ -278,6 +280,8 @@ import Empty from "~/components/ui/empty/Empty.vue"; variant="embedded" class="min-h-0 flex-1 overflow-y-auto" :last-read-count="tracksReadPosition ? lastReadMessageCount : 0" + :message-room="messageRoom" + :can-moderate="canModerate" @bottom-state-change="handleBottomStateChange" /> @@ -342,7 +346,7 @@ import Empty from "~/components/ui/empty/Empty.vue"; - {{ readonlyHint || $t("chat.readonly") }} + {{ readonlyText }} @@ -373,7 +377,13 @@ import Empty from "~/components/ui/empty/Empty.vue"; + + diff --git a/components/chat/ChatMessages.vue b/components/chat/ChatMessages.vue index 509d7e83c..a6d60ba8a 100644 --- a/components/chat/ChatMessages.vue +++ b/components/chat/ChatMessages.vue @@ -52,6 +52,8 @@ :message="message" :previous-message="messages[index - 1]" :next-message="messages[index + 1]" + :room="messageRoom ? messageRoom(message) : null" + :can-moderate="canModerate" /> @@ -60,8 +62,10 @@ @@ -25,7 +34,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)