ui: a password dialog for locked channels, and pokes with a message
Joining a locked channel sent no password, so the server refused it and nothing said so; pokes always went out empty. Every join (a double-click in the tree, joining a friend) now goes through App::join_channel: a locked channel asks for its password first (join_password), which is kept for the session until voice disconnects, and it is used when connecting into the channel too. Event::JoinFailed asks again under "Wrong password", or says the channel is full or why the server refused. Without voice, a double-click connects into the channel, as joining a friend did. Connecting into a channel names it by id (`/<cid>`): by name the server finds only a top-level channel, so a subchannel's name connected into the default channel. A wrong password when connecting also puts us into the default channel without a word, so the channel is joined again once it shows in the presence (after_connect), and that move asks again. Both seen on the dev TS3 and TS6 servers. Poking opens a dialog with an optional message, its length counted up to 100 characters; the UI trims and cuts it (poke_message), and the engine cuts it on characters too. Both dev servers take 100 characters of any width (400 bytes of emoji) and refuse 101 (seen through ServerQuery). Dev switches channel-password[:wrong] and poke. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
This commit is contained in:
1 parent
7e43178e04
commit
42639fd206
18 files changed
+512
-63
No files matched your search
@@ -195,8 +195,9 @@ announces its hash (`clientupdate client_flag_avatar`), or removes it.
|
||||
|
||||
## Pokes, private and offline messages
|
||||
|
||||
`Command::Poke` sends `clientpoke`; incoming pokes are `Event::Poke` (they
|
||||
used to be stored as private messages). Private messages to any client on
|
||||
`Command::Poke` sends `clientpoke`, its message cut to 100 characters
|
||||
(`POKE_MESSAGE_MAX`); incoming pokes are `Event::Poke` (they used to be
|
||||
stored as private messages). Private messages to any client on
|
||||
the server are a `ChatTarget::Private(unique id)` chat over the voice
|
||||
connection, stored in the chat history under the peer's unique id, so the
|
||||
conversation survives reconnects and new client ids. Gateways and query
|
||||
|
||||
+4
-1
@@ -147,6 +147,8 @@ comes from the engine's events; what a gateway adds is hidden without it.
|
||||
| Chat | `server` | Header with Pinned Messages, Topics, the voice channel and the members button; chat tabs; messages grouped by author ("Today at 10:14"), avatars, emoji, reactions with an add button, pin and topic marks, file cards with download; composer with attach, emoji and send. Opens at the newest message and follows new ones while at the end | `ChatHistory` (and `Chat` for servers without history), `AvatarReady`, `Transfer`, `Gateway` (pins; reactions arrive as stored messages); `Command::LoadOlderHistory`, `DownloadChatFile`, `UploadFile`, `GatewayRequest::React`, `Unreact`, `Pin`, `Unpin` |
|
||||
| Members panel | `server` (`panel`, `no-panel`) | "Members — N" and a search; those streaming first (the people in our channel while the voice channel or a stream is shown), then each server group in the server's order with its icon, then those without a group. Rows: avatar with status, name, crown (admin groups), priority speaker, channel commander, recording, moderator role, talk power, what they do or the channel they are in. Resizable: the width is `ui.members_width` | `Presence`, `Groups`, `Talking`, `IconReady` |
|
||||
| Member card | `member` | Description, groups, talk power, country; private message, poke, friend, block; volume and mute for us | `ContactsChanged`; `Command::SetContact`, `SetClientVolume`, `SetClientMuted`, `Poke` |
|
||||
| Poke | `poke` (the first other member's, card open; after `friends` a contact's) | `PokeDialog`, from the member card, a friend's row and the direct message header: an optional message with a "12/100" count, Send off above 100 characters, Enter sends, Escape cancels | `Command::Poke` (trimmed, cut to 100 characters; the engine cuts too) |
|
||||
| Channel password | `channel-password`, `channel-password:wrong` | Joining a channel (a double-click in the tree, joining a friend) moves there with voice, or connects into it (by its id) without; when the server puts us elsewhere on connecting, as it does for a wrong password, it is joined again, which says why. A locked channel first asks for its password in `ChannelPasswordDialog`, unless one was given since voice connected; a refused one asks again under "Wrong password". A full channel or another refusal is a toast | `Presence` (`has_password`), `JoinFailed`; `Command::MoveToChannel`, `ConnectVoice` (`channel_password`) |
|
||||
| Pinned messages | `pins` | In the members panel's place: cards with author, time, text, files and reactions; the pin unpins, a click jumps to the message | `Gateway` `Pins`, `Pinned`, `Unpinned`; `GatewayRequest::Pins`, `Unpin` |
|
||||
| Topics | `topics`, `topic:<id>` | In the members panel's place: search, cards with the message count, creator and last activity, Create Topic; an open topic replaces the chat's messages and takes replies | `Gateway` `Topics`, `Topic`, `TopicHistory`; `GatewayRequest::Topics`, `TopicHistory`, `CreateTopic`, `Post` |
|
||||
| Voice channel | `voice` | Title, topic, "5 in voice / 50 total", Copy invite link (a `ts3server://` link to the channel; the phone's Invite button does the same), Chat only, Voice Settings, Leave; the people as large avatars (talking ring and bars, muted, crown, streaming); the streams as cards (LIVE, viewers, kind, bitrate, sound, Watch Stream); the channel's chat | `Presence`, `Talking`, `StreamsChanged`, viewer counts from `StreamsChanged`, else the `Gateway` stream directory |
|
||||
@@ -384,7 +386,8 @@ Environment variables (see `src/dev.rs`):
|
||||
a stream, without a server (nothing is stored).
|
||||
- `VOELIN_OPEN=<what>[,<what>...]`: `home`, `server`, `settings[:voice|keybinds|streaming|privacy|appearance|profiles]` (`identities` is the same as `profiles`),
|
||||
`about`, `share[:live]`, `bookmark[:edit]`, `emoji`, `client`, `panel`, `no-panel`,
|
||||
`voice`, `pins`, `topics`, `topic:<id>`, `member`, `watch`, `popout`
|
||||
`voice`, `pins`, `topics`, `topic:<id>`, `member`, `poke`,
|
||||
`channel-password[:wrong]`, `watch`, `popout`
|
||||
(the server page, above), `tab:<home|servers|chat|activity|you>` (phone
|
||||
layout); `friends[:<uid>]`, `messages[:<uid>]`, `inbox`, `offline`,
|
||||
`library`, `events`, `event-form`, `search[:<text>]`, `notifications`,
|
||||
|
||||
Reference in new issue
Block a user