Skip to content

Commit fbb5432

Browse files
committed
(UI) add system message formatting
1 parent 1078f93 commit fbb5432

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/ChatWindow/Message/Message.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@
99
</div>
1010

1111
<div v-if="message.system" class="vac-card-info vac-card-system">
12-
{{ message.content }}
12+
<format-message
13+
:content="message.content"
14+
:users="roomUsers"
15+
:text-formatting="textFormatting"
16+
:link-options="linkOptions"
17+
@open-user-tag="openUserTag"
18+
>
19+
<template v-for="(i, name) in $scopedSlots" #[name]="data">
20+
<slot :name="name" v-bind="data" />
21+
</template>
22+
</format-message>
1323
</div>
1424

1525
<div

0 commit comments

Comments
 (0)