fix: sometimes kick messages where not formatted

This commit is contained in:
Vitaly Turovsky 2025-01-16 18:04:33 +07:00
commit ce8e414528

View file

@ -21,6 +21,11 @@ export const displayClientChat = (text: string) => {
}
export const parseFormattedMessagePacket = (arg) => {
if (typeof arg === 'string') {
try {
arg = JSON.parse(arg)
} catch {}
}
if (typeof arg === 'object') {
try {
return {