gateway: invisible to users, and tried again when away
Users never hear of the gateway:
- relayed messages look like everyone else's (no "via relay", no accent
colour) and group with the author's other messages;
- a gateway that cannot be reached or drops is tried again by itself
(after 2, 5, 15, 30, then every 60 s) with the open chats opened again
and messages written meanwhile sent, instead of a WebSocket error
("connection refused") on screen; it is logged with its URL, once per
cause;
- a server whose gateway is away is offline, not connecting, so it can
always be joined;
- failed requests the app made by itself are quiet; what the user did and
failed is told in plain words; query relay errors are logged;
- no status line about a found gateway; events and streams texts do not
mention it.
The gateway is looked up once per run even when one is stored: what the
server publishes takes the place of a stored URL (one that moved, or one
typed into an older version that showed the field, which cannot be
edited any more).
The admin guide says a _tsgws record must point at TLS, not at tsgw's own
plain port.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
This commit is contained in:
1 parent
f8dcfaf0f5
commit
266148d9cd
16 files changed
+384
-78
No files matched your search
@@ -189,7 +189,6 @@ export struct ChatLine {
|
||||
author: string,
|
||||
text: string,
|
||||
time: string,
|
||||
relayed: bool,
|
||||
// The text split into runs; only filled when it has emoji (`rich`).
|
||||
runs: [TextRun],
|
||||
rich: bool,
|
||||
|
||||
@@ -337,7 +337,7 @@ export component MessageRow inherits Rectangle {
|
||||
alignment: start;
|
||||
Text {
|
||||
text: line.author;
|
||||
color: line.relayed ? Theme.accent-text : Theme.name-text;
|
||||
color: Theme.name-text;
|
||||
font-size: Theme.font-lg;
|
||||
font-weight: Theme.weight-medium;
|
||||
vertical-alignment: center;
|
||||
@@ -348,12 +348,6 @@ export component MessageRow inherits Rectangle {
|
||||
font-size: Theme.font-sm;
|
||||
vertical-alignment: center;
|
||||
}
|
||||
if line.relayed: Chip {
|
||||
text: @tr("via relay");
|
||||
icon: Icons.radio;
|
||||
tint: Theme.accent-text;
|
||||
y: (parent.height - self.height) / 2;
|
||||
}
|
||||
if line.pinned: Chip {
|
||||
text: @tr("pinned");
|
||||
icon: Icons.pin;
|
||||
|
||||
@@ -319,7 +319,7 @@ export component EventsPage inherits VerticalLayout {
|
||||
}
|
||||
}
|
||||
if !Bridge.has-events: Banner {
|
||||
text: @tr("This server's gateway does not keep events (or there is no gateway).");
|
||||
text: @tr("This server does not keep events.");
|
||||
icon: Icons.info;
|
||||
tone: Theme.info;
|
||||
}
|
||||
|
||||
@@ -1024,7 +1024,7 @@ export component HomePage inherits Rectangle {
|
||||
action-clicked => { root.more-live(); }
|
||||
}
|
||||
if Bridge.live-rooms.length == 0: Text {
|
||||
text: @tr("No one is live on your servers right now. Streams of TeamSpeak 6 servers and those a gateway lists show up here.");
|
||||
text: @tr("No one is live on your servers right now. Streams on your servers show up here.");
|
||||
color: Theme.text-muted;
|
||||
font-size: Theme.font-sm;
|
||||
wrap: word-wrap;
|
||||
|
||||
@@ -882,7 +882,7 @@ export component IntegrationsSection inherits VerticalLayout {
|
||||
icon: Icons.plug;
|
||||
subtitle: @tr("A gateway gives a server invisible presence, chat without joining, history, pins, reactions, topics, events and the stream directory.");
|
||||
if Bridge.gateways.length == 0: Hint {
|
||||
text: @tr("None of your servers has a gateway. Add its URL to a server's bookmark (Edit server).");
|
||||
text: @tr("None of your servers has a gateway. Voelin finds one by the server's address when the server's admin publishes it.");
|
||||
}
|
||||
for gw in Bridge.gateways: VerticalLayout {
|
||||
spacing: Theme.space-2;
|
||||
|
||||
@@ -943,7 +943,7 @@ component ChatRow inherits Rectangle {
|
||||
alignment: start;
|
||||
Text {
|
||||
text: line.author;
|
||||
color: line.relayed ? Theme.accent-text : Theme.name-text;
|
||||
color: Theme.name-text;
|
||||
font-size: Theme.font-body;
|
||||
font-weight: Theme.weight-medium;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user