mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
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:
1 parent
bd0122812d
commit
dbe9a3c2df
7 files changed
+552
-1
No files matched your search
@@ -31,6 +31,7 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"menu.extras.clientLog": "Client Protokoll",
|
||||
"menu.extras.banList": "Bannliste",
|
||||
"menu.extras.complaintList": "Beschwerdeliste",
|
||||
"menu.extras.offlineMessages": "Offline Nachrichten",
|
||||
"menu.extras.serverQueryLogin": "ServerQuery Login",
|
||||
"menu.extras.serverLog": "Server Protokoll",
|
||||
"menu.extras.startRecording": "Aufnahme starten",
|
||||
@@ -375,6 +376,18 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"complainList.from": "Von",
|
||||
"complainList.message": "Nachricht",
|
||||
"complainList.timestamp": "Zeitpunkt",
|
||||
"offlineMessages.title": "Offline Nachrichten",
|
||||
"offlineMessages.empty": "Keine Nachrichten vorhanden.",
|
||||
"offlineMessages.subject": "Betreff",
|
||||
"offlineMessages.from": "Von",
|
||||
"offlineMessages.timestamp": "Zeitpunkt",
|
||||
"offlineMessages.targetUid": "Ziel-UID",
|
||||
"offlineMessages.message": "Nachricht",
|
||||
"offlineMessages.send": "Senden",
|
||||
"offlineMessages.new": "Neue Nachricht",
|
||||
"offlineMessages.markRead": "Als gelesen markieren",
|
||||
"offlineMessages.backToList": "Zurück zur Liste",
|
||||
"dialog.cancel": "Abbrechen",
|
||||
|
||||
"clientContext.privateChat": "Privater Chat",
|
||||
"clientContext.poke": "Anstupsen",
|
||||
@@ -444,6 +457,7 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"menu.extras.clientLog": "Client Log",
|
||||
"menu.extras.banList": "Ban List",
|
||||
"menu.extras.complaintList": "Complaint List",
|
||||
"menu.extras.offlineMessages": "Offline Messages",
|
||||
"menu.extras.serverQueryLogin": "ServerQuery Login",
|
||||
"menu.extras.serverLog": "Server Log",
|
||||
"menu.extras.startRecording": "Start Recording",
|
||||
@@ -788,6 +802,18 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"complainList.from": "From",
|
||||
"complainList.message": "Message",
|
||||
"complainList.timestamp": "Timestamp",
|
||||
"offlineMessages.title": "Offline Messages",
|
||||
"offlineMessages.empty": "No messages found.",
|
||||
"offlineMessages.subject": "Subject",
|
||||
"offlineMessages.from": "From",
|
||||
"offlineMessages.timestamp": "Timestamp",
|
||||
"offlineMessages.targetUid": "Target UID",
|
||||
"offlineMessages.message": "Message",
|
||||
"offlineMessages.send": "Send",
|
||||
"offlineMessages.new": "New message",
|
||||
"offlineMessages.markRead": "Mark as read",
|
||||
"offlineMessages.backToList": "Back to list",
|
||||
"dialog.cancel": "Cancel",
|
||||
|
||||
"clientContext.privateChat": "Private chat",
|
||||
"clientContext.poke": "Poke",
|
||||
|
||||
Reference in new issue
Block a user