mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 05:12:57 -05:00
Fix #108
This commit is contained in:
parent
b79c50911d
commit
cdcf477c42
2 changed files with 12 additions and 0 deletions
|
@ -65,6 +65,14 @@ export function parseMessage(messageData: any, allBadges: Badge[]): ParsedMessag
|
|||
}
|
||||
}
|
||||
}
|
||||
case 'NOTICE': {
|
||||
return {
|
||||
type: 'NOTICE',
|
||||
data: {
|
||||
message: message.message
|
||||
}
|
||||
}
|
||||
}
|
||||
// Add more cases for other message types here
|
||||
default: {
|
||||
return {
|
||||
|
|
|
@ -194,6 +194,10 @@ export default {
|
|||
<p v-else class="text-sm text-gray-500 italic"> {{ $t("chat.timeout", { username: message.data.username, duration: message.data.duration }) }} </p>
|
||||
</div>
|
||||
|
||||
<div v-else-if="message.type === 'NOTICE'" class="text-contrast inline-flex bg-pink bg-opacity-50 p-1 rounded-md">
|
||||
<p> {{ message.data.message }} </p>
|
||||
</div>
|
||||
|
||||
<div v-else class="text-contrast">
|
||||
{{ message }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue