session.ChatFeed decides which conversation a message, history, server
event or notice goes to and renders it; frontends get the lines through
chat.ChatSink and key conversations by chat.ChatKey. ServerSession.Listener
no longer passes on raw chat events. Swing now labels our own messages
with our nickname on the server and links our name to us in private chats.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
text.ByteSize writes sizes and rates as TeamSpeak does and replaces the
formatters in ChatHtml, FileBrowserDialog and ConnectionStatsFormat.
chat.ChatScope replaces ConnectionListener.ChatScope, ChatLogScope and
ChatPanel.Target, and the mappings between them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each setting is declared once with its key, type and range, and loaded
and saved from that list. Output device, volume and receive buffer, the
status bar and the master volume slider take effect through listeners
instead of calls wherever they change; Android does the same for output
settings and country flags. The Playback page previews voice volume with
the master volume applied.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ServerListDialog, ListEditorDialog and CtlOpusEncoder gain the Abstract
prefix. The list windows blank their status line with clearStatus() and
make icon-less menu items with item(text, action), instead of passing null.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ban list, complaints, privilege keys, offline messages and server
log windows each built the same frame, title, status line, key bindings,
load guard and reload-after-change. ServerListDialog does that once;
ServerTab keeps the open windows in one map.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MainCommands holds each command once: the plain ones act on the server
on screen, the ones taking a list of sessions serve hotkeys, which reach
the selected server or every connected one. The menu bar, toolbar and
HotkeyActions call it directly, so both Listener interfaces and the
forwarding in MainFrame are gone.
The menu's mute items no longer click the toolbar's buttons, and its
commander toggle now repaints the toolbar and tray.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
session.connection() is gone: the session hands out the model, our ids,
the microphone and speakers, ping and connection info, the server's
unique id, icon and avatar stores, myTeamSpeak, the connect error and a
blocking disconnectNow. The connection's remaining actions move into
helpers the session hands out instead of forwarding each method:
ClientAdmin (move, kick, ban, groups, talk power, poke, client details),
ChannelFiles (listing, mkdir, rename, delete, transfers and their
sounds) and ClientContacts (display names, volume, auto-mute, whisper
policy, sightings); ChannelAdmin also takes join, move, subscribe and
description requests. Dialogs take the session instead of the
connection.
Android's network handover now uses disconnectNow, which also cancels a
pending auto-reconnect.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OwnClient owns the microphone and speakers and our flags (mute, deafen,
away, commander, talk request, phonetic nickname, input hardware) and
publishes them; Recording owns the recorder. ServerSession reads the
flags from OwnClient instead of keeping its own copy, and they are now
cleared when a connect starts rather than once it is done.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
R8 stripped IniParser's no-arg constructor, which ini4j's ServiceFinder
instantiates by reflection, so reading identities (myTeamSpeak login,
import) crashed the release build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The channel, ban, privilege key, complaint, server log, offline message
and avatar helpers are public, each method running in the background and
answering a future; only the connection creates them. TeamspeakConnection
and ServerSession hand them out, which drops 30 one-line forwarders from
the connection. What the forwarders added moves into the helpers: the
stop-at-the-first-refusal loops, the "sent" log lines, re-reading an
edited channel's description and showing our own new avatar. The
complaint and offline message length limits move with them.
The icon chooser and the offline message composer take only their
helper; the other dialogs still need the connection for the model.
The connection's request runner is renamed Uplink, since
session.ServerLink is the ts3server:// link.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ServerLink owns what lives from one connect to its teardown: the socket,
the thread ts3j dispatches events on, the threads requests run on and
the file transfer channel. It runs requests in the background and says
whether we are connected. The *Admin helpers take it, plus the model,
permissions or avatar store where they need them, instead of the whole
TeamspeakConnection; the connection's file transfer calls share its
"not connected" check instead of repeating it.
A myTeamSpeak refresh that fails because we left meanwhile is no longer
reported, as for every other request.
Also corrects 4a's commit hash in AUDIT-STRUCTURE.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ChatLog opens the on-disk log once the server is known, hands frontends
the server and channel history, and saves sent and received messages and
the server tab's log lines; with logging off, everything still reaches
the app unsaved. Announcer tells the user what happened as TeamSpeak
does: the server-tab line with linked channels and clients, the sound
pack's sound with its name variables, and errors with the matching
"insufficient permissions" or "error" sound.
ConnectionEventHandler uses both directly instead of nine helpers on the
connection, which no longer holds the sound notifier. The connection's
public API is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rules were spread over ServerSession's can* methods, ServerModel's
permits/mayHavePower/canDelete*, TeamspeakConnection and AvatarAdmin, and
Swing dialogs and Android's ServerController passed raw permission names.
Permissions now holds the server's permission table and the rules (offered
until the server says, unreported powers unknown until asked) and answers
one named question per capability. ServerSession.permissions() is the gate
for frontends: Permissions.NONE, allowing nothing, while disconnected.
ServerController's forwarding properties go the same way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
onClientJoin set every field and onClientChanged set the same ones again
behind presence checks, so the two drifted: a client entering as channel
commander showed as none until they toggled it, and the description they
entered with was dropped. applyClientProperties now maps each field once,
only when the event carries it, as applyChannelProperties does for
channels; the update keeps its side effects (info refresh, contacts,
unread count, announcements).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Server requests on TeamspeakConnection took callbacks given a value and an
error string, null on success, so frontends told a permission refusal from
other failures by the message's wording (ban list, server log) and core
needed a sentinel message for a refused search. They now return a
CompletableFuture that fails with a RequestException carrying the kind
(not connected, permission, failed) and the server's reason.
Replies hands the outcome to a success or a failure handler on a given
executor; Swing's Edt runs them on the event thread, so call sites no
longer marshal by hand. Android's ServerController, whose suspend calls
answered a String? that was null once done, returns Result instead.
lookupDatabaseClient answers an Optional rather than null.
Starts the structural audit in AUDIT-STRUCTURE.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A sideways swipe over the channel tree turns to the chat (lying to its
right) or to the neighbouring connected server, as picked in Design
settings ("Swipe sideways": off, channel tree and chat, connected
servers). A swipe over the chat lines goes to the neighbouring tab, on
by default, and the tab row scrolls it into view. The page beside the
one on show follows the finger (SwipeHost); a swipe with nowhere to go
is left to the host further out, so the chat's tabs hand over to the
chat/tree swipe at either end. The choices are Android-only, kept in
their own SharedPreferences (SwipePrefs).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a timeout or a server shutdown the session counts down and connects
again, back to the channel it was in, waiting 5, 10, 20, 40 and then 60 s
between attempts. A kick, a ban, leaving, or connecting elsewhere ends it, as
does a retry refused with a ban. The status bar shows the countdown with a
Cancel link. Off by default in core, so Android keeps its own NetworkFollower.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The main window comes back at its last size and position, maximised if it was;
a place no longer on any screen falls back to the default. The tree/chat
divider is saved like the tree/info one, and both keep their share of the
window as it is resized.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core keeps client_is_talker, the request's time and reason, and each
channel's needed talk power; clientedit grants or revokes, and "grant
next" picks whoever in our channel asked first, optionally revoking the
rest. The server refuses a request or a grant ("invalid parameter") from
or for a client that can already talk, so both are offered only to those
short of talk power. Grants dropped without an invoker (leaving the
channel, the channel's need changing) are not announced. Verified on a
local 3.13.7 server.
Desktop: Grant/Revoke Talk Power in the client menu, also for several
selected clients; the tree's badges in TeamSpeak's order (granted or
insufficient ahead of the groups, a request after them); the request's
reason in the info panel; log lines; the three talk power hotkeys. The
Self menu's request item shows only while it is needed.
Android: grant/revoke among the client sheet's admin actions, request or
cancel on our own sheet, the same badges in the tree.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move to channel, the kicks, the ban and the group pickers move under one
row that, once tapped, gives its place to them, raises the sheet and
scrolls them into view (ExpandableAction). The row shows only when one of
them is ours to use; "Move to own channel" stays in the main list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Asking for i_client_move_power and the like (permget) needs
b_client_permissionoverview_own, which custom moderator groups often lack
although they hold the powers; servergrouppermlist is refused too. A
refusal counted as 0, so Android hid actions the official client allows.
Now a refusal means unknown and the actions are offered, as the official
client always does, leaving the server to judge; only an answered 0 hides
them. Verified with such a group on a local 3.13.7 server.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Desktop: Ctrl/Shift in the tree (ClientSelectionModel keeps a selection to
one row of any kind or several clients; a Shift range keeps its clients),
drag them onto a channel, or right-click for Kick Clients from Channel /
Server and Move Clients to own Channel. The selection survives rebuilds.
Android: long-press a client, tap more; a bar offers Move to…, Move to my
channel and both kicks (as far as we may), Back clears it.
Core sends one piped clientmove / clientkick. The server refuses the whole
pipe when one row fails ("already member of channel"), so it leaves out
clients already in the target, and for a channel kick those already in
the default channel, which the model now tracks (channel_flag_default).
Verified on a local 3.13.7 server with both frontends.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Connection info moves to the end, just above the volume slider, which
stays last; "Add to whisper list…" is left out of the sheet for now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bookmark editors (desktop dialog, Android screen) get TeamSpeak's
button beside the default channel, with its MAKE_CURRENT_CHANNEL_DEFAULT
icon: it takes the channel we are in, enabled while we are on the server
the form's address and port lead to (Sessions.connectedTo). The Android
channel sheet drops "Add to bookmarks"; the server sheet keeps it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Whispering can't be gated on permissions: our i_client_whisper_power is
never reported (and guests may not permget it), and whether a whisper gets
through depends on the target's needed whisper power, which clients can't
see. So the whisper menu and the Whisper / Add to whisper list actions are
shown only for servers connected from a bookmark that asks for them; an
edit of that bookmark applies without reconnecting.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The channel menu (desktop) and channel sheet (Android) leave the entry out
when i_ft_file_browse_power is 0. Unlike move/kick/ban powers it is among the
needed permissions the server reports, and with it at 0 ftgetfilelist is
refused even where the channel needs no power (verified on a local 3.13.7).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signs clientinit with the account's Ed25519 key over the connection
challenge, honours the per-bookmark switch, sends updatemytsid on
sign-in/out, and connects without the ID when myTeamSpeak is unreachable.
Verified live against server.lixko.eu.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TeamSpeak 6 syncs chat contacts as item class 8 (Item_Data field 25). They
are imported as friends keyed by myTeamSpeak ID, taken from the item or from
the partner's chat ID (@<base32 id>:<homeserver>), the same bytes servers
report as base64 client_myteamspeak_id. The contact list matches them to
clients through the ID each client carries.
Bookmarks gain TeamSpeak's "Enable myTeamSpeak features" switch
(send_mytsid_on_server), stored and imported but not yet sent; what is
still missing is noted in docs/myteamspeak/myteamspeak_server_signin.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The group dialogs list a group we may not assign only when the client is
in it, and the rows drop the 48dp minimum touch target for a 6dp padding.
The Server groups and Channel group actions share one row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bookmark.hostPort gives the address alone for port 9987 and address:port
otherwise. The Android connect screen, the myTeamSpeak item lists on
desktop and Android, and the display name of an unnamed bookmark use it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The items the account synchronises are listed in an Identities and a
Bookmarks section, each with a Select all / Deselect all button on its
heading line, on desktop and Android. The desktop tables drop the Type
column and name the details column Nickname or Address.
FormPanel.sectionHeader and addSection take an optional trailing component.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With no bookmarks, the connect screen shows "Sign in to myTeamSpeak"
("Import from myTeamSpeak" when signed in), which opens the same
myTeamSpeak screen as Settings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"TeamSpook TS3j" does not fit under a home-screen icon, so the launcher
activity is labelled "TS3J". The application label, shown in App info and
notifications, stays "TeamSpook TS3j".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A chat follows its end until the user scrolls away from it: a restored log,
new lines and content that grows later all keep the newest line fully in
view, a tall last message included.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Java/Kotlin sources move from com.ts3client to eu.lixko.ts3j.client, and
the Android application id becomes eu.lixko.ts3j.client. The product name
shows as "TeamSpook TS3j" in window titles, the tray, the launcher entries,
notifications and PipeWire streams.
The desktop profile directory, WM_CLASS and ts3j.* system properties keep
their names so existing settings and launchers carry on working.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TeamSpeak stores sync items in creation order; each names the item above
it in its folder, and a reorder only rewrites those links. The decoder
now keeps that link and SyncOrder follows the chains, so items read from
settings.db or myTeamSpeak come out as the official client lists them,
a folder's contents in its place. Broken links and loops go last in
stored order. Bookmarks imported earlier keep their place.
The reordered.db fixture was written by the official client.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bookmark page has a "Connect on startup" switch, the same flag the
desktop client and the TeamSpeak import use. A fresh launch connects
every such bookmark once per process, skipping the server a link or
home-screen shortcut opened the app to. The bookmarks list marks them
with a green "AC".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Release builds now come out one APK per ABI, signed from a gitignored
keystore.properties. Oboe is built from source with libopus and a static
libc++ into the one native library, which exports only its JNI entry
points; dex and native code are compressed in the APK and library
translations dropped. The arm64 APK went from 11.6 MB to 5.5 MB.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rubin's vase with a headset: the vase's outline is two faces looking at
each other, one talking into the microphone. Blue on transparent; the
Android launcher puts it on white, as no launcher shows a transparent
adaptive icon. Desktop windows, tray, the .desktop entry and the macOS
dock all use it, with a bolder variant below 32 px.
ts3-client/tools/AppIcon.java generates the SVGs and the launcher
foreground.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The channel and client sheets whisper to them or add them to a whisper
list. The top bar's whisper menu picks a list, replies to the last
whisper, stops whispering and edits the lists; a banner over the voice
bar says who the microphone whispers to.
Core keeps the whisper on the session, finding its channels by path and
its clients by unique id again as the server changes, and the saved lists
in whisperlists.properties. ts3j now sends whisper packets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Browse files on the channel sheet walks the channel's folders: download
to where the user picks, upload a document, new folder, rename, delete.
Transfers go through cache files and outlive the page, with progress and
cancel; a locked channel asks for its password first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A one-page channel editor with what the desktop dialog has but the
permissions and the icon: name, password, topic, description, type,
sorting, talk power, codec preset or codec and quality, and the limits.
Create channel is on the server sheet; create sub-channel, edit and
delete on the channel sheet, each only with the permission for it.
The codec list, presets and bandwidth move to core for both editors.
Core gains channel delete, and the desktop channel menu a Delete Channel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Add to home screen" in a bookmark's menu pins a shortcut that connects
to the bookmark, or goes to its channel when already on that server. The
shortcut names the bookmark by a new stable id, so it follows edits and
stops working once the bookmark is removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A link connects with its nickname, passwords, channel (path or cid) and
privilege key, the key used once on; addbookmark saves it as a bookmark.
A link to a server we are on already goes to its channel instead.
Android takes the links from browsers and other apps through an intent
filter, and from chat. The desktop opens them from chat and descriptions,
and its launcher entry claims the scheme when run from the jar; a second
launch hands its link to the running instance over a Unix socket in the
user's runtime directory.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>