Fixed quick chat text injection (#1144)

## Description:
https://github.com/openfrontio/OpenFrontIO/issues/1035
Fixes #1035 
## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

.w.

---------

Co-authored-by: Scott Anderson <scottanderson@users.noreply.github.com>
Co-authored-by: evanpelle <evanpelle@gmail.com>
This commit is contained in:
Aotumuri
2025-06-13 09:21:22 -07:00
committed by GitHub
co-authored by Scott Anderson evanpelle
parent 9717c95c34
commit e68d48c3a8
10 changed files with 44 additions and 47 deletions
+1 -1
View File
@@ -606,7 +606,7 @@ export interface Game extends GameMap {
displayChat(
message: string,
category: string,
variables: Record<string, string>,
target: PlayerID | undefined,
playerID: PlayerID | null,
isFrom: boolean,
recipient: string,
+2 -2
View File
@@ -630,7 +630,7 @@ export class GameImpl implements Game {
displayChat(
message: string,
category: string,
variables: Record<string, string> = {},
target: PlayerID | undefined,
playerID: PlayerID | null,
isFrom: boolean,
recipient: string,
@@ -643,7 +643,7 @@ export class GameImpl implements Game {
type: GameUpdateType.DisplayChatEvent,
key: message,
category: category,
variables: variables,
target: target,
playerID: id,
isFrom,
recipient: recipient,
+1 -1
View File
@@ -172,7 +172,7 @@ export type DisplayChatMessageUpdate = {
type: GameUpdateType.DisplayChatEvent;
key: string;
category: string;
variables?: Record<string, string>;
target: string | undefined;
playerID: number | null;
isFrom: boolean;
recipient: string;