Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
96ce9e7
Test that both Info.plists and the entitlements keep the camera entri…
unRekable Dec 4, 2026
63ef075
The Discord soundboard test waits for the gateway frame it checks, in…
unRekable Dec 4, 2026
6b2a917
Test that the 2,000-per-conversation cap keeps a crowded Signal conve…
unRekable Dec 4, 2026
5cf7520
Say in the README and the docs that retention leaves Signal history w…
unRekable Dec 4, 2026
69b4641
Keep the settings a Signal phone shared over a chatd restart and ask …
unRekable Dec 4, 2026
a1a3a96
Stopping a Telegram download ends it at the piece on its way and leav…
unRekable Dec 4, 2026
9dbeea8
Mark unread from a Tiny message goes by time and the post's number, a…
unRekable Dec 4, 2026
68938ee
Installed Signal sticker packs are read again from the storage service
unRekable Dec 4, 2026
36daa23
Merge #1035 (fix/soundboard-test-waits-for-frame) into release/0.2.94
itz4blitz Dec 5, 2026
ccb4ece
Merge #1036 (fix/camera-plist-entitlement-test) into release/0.2.94
itz4blitz Dec 5, 2026
8beec46
Merge #1037 (fix/signal-history-cap-test) into release/0.2.94
itz4blitz Dec 5, 2026
4b84ac0
Merge #1039 (docs/retention-spares-signal) into release/0.2.94
itz4blitz Dec 5, 2026
3845ca7
Merge #1038 (fix/signal-config-persisted) into release/0.2.94
itz4blitz Dec 5, 2026
53b3cb8
Merge #1040 (fix/telegram-cancel-download) into release/0.2.94
itz4blitz Dec 5, 2026
06da22c
Merge #1042 (fix/mark-unread-id-order) into release/0.2.94
itz4blitz Dec 5, 2026
ea69f33
Merge #1044 (fix/read-installed-sticker-packs) into release/0.2.94
itz4blitz Dec 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ The data directory is `~/Library/Application Support/tinyclient` on macOS, `$XDG
- **Calls** connect mediad to Discord's voice servers, Telegram's voice reflectors/SFU, or the Tiny server's own media port. Telegram 1:1 voice calls use MTProto 2.0 end-to-end encryption with 4 verification emoji; Telegram group voice chats join via WebRTC (DTLS-SRTP) and are not end-to-end encrypted. A Tiny server call is end-to-end encrypted only when that server offers `e2ee_calls` and every app in the call can do it. Otherwise the call says "Encrypted to the server". What that lock does and does not promise is in [SECURITY.md](SECURITY.md). When a Tiny call turns on screen share, camera, or watching a picture, and Cisco's OpenH264 library is not already on disk, mediad downloads it from Cisco. A voice-only call does not.
- **Messages** texts go through the paired Android phone. The phone has to stay online.
- **TLS** is the operating system's (Security.framework, SChannel, OpenSSL) for every network but Signal, whose libraries use rustls pinned to Signal's own certificate authority.
- **Retention.** By default, the newest 2,000 messages per conversation, and nothing older than 90 days unless you opened the conversation in that time. Settings can keep messages for 7, 30, or 90 days. Unsent messages stay. Signing out of an account asks the network to end the session where it can, takes that account out of the network's credential item, and deletes the item when it was the last account. It deletes that account's rows and its media files. The database is not vacuumed, so deleted text can remain in free pages of `chat.sqlite` until SQLite reuses them.
- **Retention.** By default, the newest 2,000 messages per conversation, and nothing older than 90 days unless you opened the conversation in that time. Settings can keep messages for 7, 30, or 90 days. Signal messages are the exception and are kept until you clear them, because Signal does not send them again. Unsent messages stay. Signing out of an account asks the network to end the session where it can, takes that account out of the network's credential item, and deletes the item when it was the last account. It deletes that account's rows and its media files. The database is not vacuumed, so deleted text can remain in free pages of `chat.sqlite` until SQLite reuses them.
- **The local socket** is not authenticated. Any process running as your user can connect to it, as it can read your files.
- **Signal** does not show safety numbers yet, and a contact's new identity key is trusted automatically, as presage's own stores do.

Expand Down
5 changes: 5 additions & 0 deletions crates/chatd/src/adapters/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,11 @@ pub enum Command {
ids: Vec<String>,
span: (u64, u64),
},
/// The user stopped the download of this file (`Request::CancelDownload`). An adapter that
/// fetches files over its own session stops at the piece on its way and keeps nothing of
/// the file on disk; a file already on disk stays, and nothing is announced. The player's
/// byte windows are not downloads. Others ignore it.
CancelDownload { id: String },
/// The link that opens this conversation's call in the official app.
Handoff { conversation_id: String, reply: Reply<String> },
/// A stage hand, an accepted invite, or a moderator moving someone.
Expand Down
287 changes: 217 additions & 70 deletions crates/chatd/src/adapters/signal.rs

Large diffs are not rendered by default.

19 changes: 17 additions & 2 deletions crates/chatd/src/adapters/signal/fake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
//! WHO is `grace` or `alan`. Every request it is sent is appended to `signal.calls`, one line
//! each, so a test can see what the network would have heard.
//!
//! The phone answers a device that connects with its contacts, its groups and its settings. A
//! test keeps it from answering the settings with an empty `signal.phone-away` in the scratch
//! directory, as a phone that is off: they then come only from the lines above, and chatd has to
//! go by what it kept of the phone's last word (`adapters/signal.rs`).
//!
//! The account: Ada Quill (us); Grace Ombra and Alan Ferro, both contacts; the group "Bridge
//! club" with all three of us in it.

Expand Down Expand Up @@ -94,6 +99,13 @@ fn record(line: &str) {
}
}

/// True when a test keeps the phone from answering at this connect (`signal.phone-away` in the
/// scratch directory). Only the settings wait for it: the contacts and the groups are read from
/// the device's own memory and from the storage service.
fn phone_away() -> bool {
protocol::support_dir().join("signal.phone-away").exists()
}

#[derive(Clone)]
struct FakeGroup {
info: GroupInfo,
Expand Down Expand Up @@ -230,13 +242,16 @@ pub struct Fake {
impl Fake {
pub fn open(_saved: &Saved) -> Fake {
let (events, heard) = channel();
// What the phone says once a device connects: its contacts, its groups, its settings.
// What the phone says once a device connects: its contacts, its groups, its settings,
// unless the test has the phone away.
let grace = Contact { id: GRACE.into(), name: "Grace Ombra".into(), phone: "+15550100002".into() };
let alan = Contact { id: ALAN.into(), name: "Alan Ferro".into(), phone: String::new() };
let _ = events.send(Event::Contacts(vec![grace, alan]));
let club_state = FakeGroup::initial();
let _ = events.send(Event::Groups(vec![club_state.info.clone()]));
let _ = events.send(Event::Settings { read_receipts: true, typing: true, link_previews: Some(true) });
if !phone_away() {
let _ = events.send(Event::Settings { read_receipts: true, typing: true, link_previews: Some(true) });
}
let manifest_path = protocol::support_dir().join("signal.storage.json");
if let Ok(raw) = std::fs::read_to_string(&manifest_path) {
if let Ok(snapshot) = serde_json::from_str::<StorageSnapshot>(&raw) {
Expand Down
Loading
Loading