mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Show country flags next to client nicknames
Threads TeamSpeak's per-client country_code field through the connector snapshot and gateway relay, then renders it as a flag emoji (regional indicator symbols, no image assets needed) next to the nickname. Renders nothing when the server has no geo-IP data for a client (most common on non-official/self-hosted servers).
This commit is contained in:
1 parent
0529ab72f1
commit
3644ae7c41
4 files changed
+22
-4
No files matched your search
@@ -31,6 +31,7 @@ export interface ClientInfo {
|
||||
away: boolean;
|
||||
awayMessage: string;
|
||||
isChannelCommander: boolean;
|
||||
country: string;
|
||||
}
|
||||
|
||||
export type ServerLogEntry =
|
||||
@@ -115,6 +116,7 @@ export class Ts3Connection {
|
||||
away: boolean;
|
||||
away_message: string;
|
||||
is_channel_commander: boolean;
|
||||
country: string;
|
||||
}
|
||||
|
||||
interface RawChannelInfo {
|
||||
@@ -182,6 +184,7 @@ export class Ts3Connection {
|
||||
away: c.away,
|
||||
awayMessage: c.away_message,
|
||||
isChannelCommander: c.is_channel_commander,
|
||||
country: c.country,
|
||||
})),
|
||||
});
|
||||
} else if (event.type === "privateMessage") {
|
||||
|
||||
Reference in new issue
Block a user