diff --git a/src/api.ts b/src/api.ts index ce31c6f..156d77e 100644 --- a/src/api.ts +++ b/src/api.ts @@ -445,7 +445,7 @@ function buildUpdates(data: Array): DynmapUpdates { } case 'chat': - if(!entry.account || !entry.message || !entry.timestamp) { + if(!entry.message || !entry.timestamp) { dropped.incomplete++; continue; } @@ -455,15 +455,16 @@ function buildUpdates(data: Array): DynmapUpdates { continue; } - if(entry.source !== 'player') { + if(entry.source !== 'player' && entry.source !== 'web') { dropped.notImplemented++; continue; } updates.chat.push({ type: 'chat', - playerAccount: entry.account, - playerName: entry.playerName || "", + source: entry.source || undefined, + playerAccount: entry.account || undefined, + playerName: entry.playerName || undefined, message: entry.message || "", timestamp: entry.timestamp, channel: entry.channel || undefined, diff --git a/src/components/chat/ChatMessage.vue b/src/components/chat/ChatMessage.vue index 0118dd4..66b7eeb 100644 --- a/src/components/chat/ChatMessage.vue +++ b/src/components/chat/ChatMessage.vue @@ -16,7 +16,7 @@