0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 05:12:57 -05:00
This commit is contained in:
dragongoose 2024-07-11 21:55:24 -04:00
parent b79c50911d
commit cdcf477c42
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5
2 changed files with 12 additions and 0 deletions

View file

@ -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 // Add more cases for other message types here
default: { default: {
return { return {

View file

@ -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> <p v-else class="text-sm text-gray-500 italic"> {{ $t("chat.timeout", { username: message.data.username, duration: message.data.duration }) }} </p>
</div> </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"> <div v-else class="text-contrast">
{{ message }} {{ message }}
</div> </div>