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:
Moepchi committed 2026-08-02 14:15:39 +02:00
1 parent 0529ab72f1
commit 3644ae7c41
4 files changed
+22 -4

No files matched your search

+2
View File
@@ -68,6 +68,7 @@ struct ClientInfo {
away: bool,
away_message: String,
is_channel_commander: bool,
country: String,
}
/// Human-facing entries for the Server tab's log-style notifications
@@ -308,6 +309,7 @@ fn snapshot(con: &data::Connection) -> Event {
away: c.away_message.is_some(),
away_message: c.away_message.clone().unwrap_or_default(),
is_channel_commander: c.is_channel_commander,
country: c.country_code.clone(),
})
.collect();
Event::Channels { channels, clients }