mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-05 02:42:08 +00:00
fix NPCs sending message showing raw html
This commit is contained in:
@@ -320,6 +320,7 @@ export class EventsDisplay extends LitElement implements Layer {
|
||||
if (event.message.recipient === myPlayer) {
|
||||
this.addEvent({
|
||||
description: `${event.message.sender.displayName()}:${event.message.emoji}`,
|
||||
unsafeDescription: true,
|
||||
type: MessageType.INFO,
|
||||
highlight: true,
|
||||
createdAt: this.game.ticks(),
|
||||
@@ -353,10 +354,10 @@ export class EventsDisplay extends LitElement implements Layer {
|
||||
<button
|
||||
class="${btn.className}"
|
||||
@click=${() => {
|
||||
btn.action();
|
||||
this.removeEvent(index);
|
||||
this.requestUpdate()
|
||||
}}
|
||||
btn.action();
|
||||
this.removeEvent(index);
|
||||
this.requestUpdate()
|
||||
}}
|
||||
>
|
||||
${btn.text}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user