Add offline messages (Offline Nachrichten) dialog

Wires up raw TS3 protocol commands for offline messages, since
tsclientlib's generated code has no typed builder for them (same
situation as banlist/complainlist in the previous feature):

- Connector: messagelist, messageget, messageadd, messagedel,
  messageupdateflag as raw OutCommand invocations. Replies parsed via
  the existing StreamItem::MessageEvent pending-flag pattern, reusing
  InMessage::OfflineMessageList (list, no body) and InMessage::OfflineMessage
  (single message with full body, response to messageget).
- Gateway: typed events/methods threading the new commands from
  WebSocket clients through to the connector's stdin protocol.
- Frontend: new "Offline Nachrichten" dialog in the Extras menu with a
  message list (subject/from/timestamp, unread dot), a detail view
  (full body + mark-as-read), delete, and a compose form to send a new
  message to a target client UID. Demo mode gets one scripted message.

Verified against the real test server (192.168.178.108): messagelist
returns a clean DatabaseEmptyResult error for an account with no
messages (falls back to the dialog's existing 6s "unavailable" timeout,
same as banlist/complainlist), and messageadd correctly surfaces a
permissionError for a guest account lacking send rights - both proving
the raw command round-trip works end to end.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
MoepchiandClaude Sonnet 5 committed 2026-08-05 19:57:05 +02:00
1 parent bd0122812d
commit dbe9a3c2df
7 files changed
+552 -1

No files matched your search

+34
View File
@@ -1087,6 +1087,40 @@
gap: 0.5rem;
}
.ts-offline-messages-dialog {
width: 720px;
}
.ts-offline-message-compose,
.ts-offline-message-detail {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.ts-offline-message-detail-header {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 0.5rem;
}
.ts-offline-message-detail-uid {
color: var(--text-muted);
font-size: 12px;
}
.ts-offline-message-detail-body {
white-space: pre-wrap;
border-top: 1px solid var(--border-soft);
padding-top: 0.5rem;
}
.ts-offline-message-compose textarea {
resize: vertical;
font-family: inherit;
}
.ts-server-protocol-log-line {
padding: 0.15rem 0.4rem;
border-bottom: 1px solid var(--border-soft);