Lightweight native Discord client for Windows, Linux and macOS, written in Rust. No Electron, no browser engine.
Rust desktop-appdiscorddiscord-clienteguielectron-alternativelightweightlinuxmacosnative-apprustwindows
Name RustCord instead of "we" in comments and messages
VRonGitHubee43b52a1fbd
diff --git a/apps/rustcord/src/app.rs b/apps/rustcord/src/app.rsindex 5146e29..b5c5cb3 100644--- a/apps/rustcord/src/app.rs+++ b/apps/rustcord/src/app.rs@@ -281,7 +281,7 @@ pub struct RustCord {pub group_leave: Option<crate::ui::group_dm::LeaveGroup>,/// People being added to a group DM, until Discord answers.pub group_adds: Vec<Id>,- /// How many 100-member windows we've subscribed to, per channel.+ /// How many 100-member windows RustCord has subscribed to, per channel.pub member_windows: HashMap<Id, usize>,/// Pinned messages popout: (channel, anchor, loaded result).pub pins: Option<(Id, Pos2, Option<Result<Vec<Message>, String>>)>,@@ -311,7 +311,7 @@ pub struct RustCord {/// Set when a line of markdown wrapped onto a second row (an embed/// whose text wraps is as wide as it can be).pub markup_wrapped: std::cell::Cell<bool>,- /// The bot button / select / form whose answer we're waiting for.+ /// The bot button / select / form whose answer RustCord is waiting for.pub interaction: Option<crate::ui::interactions::PendingInteraction>,/// The message under which "This interaction failed" shows.pub interaction_failed: Option<Id>,@@ -394,22 +394,22 @@ pub struct RustCord {pub nitro: Option<Result<Vec<discord::commerce::Subscription>, String>>,/// A video quest playing in the in-app player.pub quest_video: Option<crate::quest_video::QuestVideo>,- /// The voice channel we are in (or joining).+ /// The voice channel you are in (or joining).pub voice: Option<crate::voice_call::VoiceSession>,- /// DM / group DM calls Discord told us about (CALL_CREATE / CALL_UPDATE), by channel.+ /// DM / group DM calls Discord told RustCord about (CALL_CREATE / CALL_UPDATE), by channel.pub calls: std::collections::HashMap<Id, crate::voice_call::DmCall>,- /// A call we started: ring the others once our side is connected.+ /// A call you started: ring the others once your side is connected.pub ring_when_connected: Option<Id>,- /// A video call we started (the DM header's camera button): turn the- /// camera on once our side is connected.+ /// A video call you started (the DM header's camera button): turn the+ /// camera on once your side is connected.pub camera_when_connected: Option<Id>,/// The call the last run closed in, offered by the "Reconnect" notice.pub last_call: Option<crate::ui::voice_notice::LastCall>,/// The call `last-call.json` holds now.pub last_call_saved: Option<crate::ui::voice_notice::LastCall>,- /// A call we want to start: waiting for Discord to say whether the DM can be rung.+ /// A call you want to start: waiting for Discord to say whether the DM can be rung.pub call_check: Option<Id>,- /// Incoming calls we dismissed here (their popup stays away).+ /// Incoming calls you dismissed here (their popup stays away).pub dismissed_calls: std::collections::HashSet<Id>,/// Voice & Video preferences, device list, mic test and call view menus.pub voice_ui: crate::voice_call::VoiceUi,@@ -417,7 +417,7 @@ pub struct RustCord {pub soundboard: crate::ui::soundboard::Soundboard,/// Games' Rich Presence by connection: (application ID, activity).pub rpc_activities: std::collections::BTreeMap<u64, (String, serde_json::Value)>,- /// What we last put in our presence, so it's only re-sent when it changes.+ /// What RustCord last put in your presence, so it's only re-sent when it changes.pub rpc_sent: Option<Vec<(String, serde_json::Value)>>,/// When Spotify was last looked at (for "Listening to Spotify").pub spotify_at: Option<Instant>,@@ -492,7 +492,7 @@ pub struct RustCord {pub registry_for: Option<Id>,/// What the registry loop was last started with: (sharing, Invisible).pub registry_sent: (bool, bool),- /// Listen Along: (whose Spotify, the track we last started).+ /// Listen Along: (whose Spotify, the track RustCord last started).pub listen_along: Option<(Id, String)>,/// Go Live: your stream, the ones you watch, the screen picker.pub go_live: Option<crate::golive::GoLive>,@@ -1488,7 +1488,7 @@ impl RustCord {self.orbs = orbs;}}- // Keep what we had if a refresh fails.+ // Keep what RustCord had if a refresh fails.Err(e) if !matches!(self.quests, Some(Ok(_))) => self.quests = Some(Err(e)),Err(e) => log::warn!("quests: {e}"),},@@ -1704,7 +1704,7 @@ impl RustCord {}"THREAD_LIST_SYNC" => self.store.thread_list_sync(&d),"THREAD_MEMBERS_UPDATE" => self.store.thread_members_update(&d),- // Our own membership of a thread (joined, or its settings changed).+ // Your own membership of a thread (joined, or its settings changed)."THREAD_MEMBER_UPDATE" => {if let Some(id) = Id::from_value(&d["id"]) {self.store.joined_threads.insert(id);@@ -1763,7 +1763,7 @@ impl RustCord {self.store.typing_stop(channel, author);self.store.insert_message(msg);if Some(author) == self.store.me_id() {- // Our own messages never make a channel unread.+ // Your own messages never make a channel unread.self.store.mark_read(channel);} else if pings {self.store.read_states.entry(channel).or_default().mentions += 1;@@ -1788,8 +1788,8 @@ impl RustCord {"MESSAGE_ACK" => self.store.message_ack(&d),"GUILD_MEMBER_LIST_UPDATE" => self.store.member_list_update(&d),"VOICE_STATE_UPDATE" => {- // Discord's "stream started / ended" sounds: someone in our call (or- // we) went live or stopped.+ // Discord's "stream started / ended" sounds: someone in your call (or+ // you) went live or stopped.let user = Id::from_value(&d["user_id"]);let ours = self.voice.as_ref().filter(|v| v.connected).map(|v| v.channel);let live = |app: &Self| user.and_then(|u| app.store.voice_flags.get(&u)).is_some_and(|f| f.streaming);@@ -2079,7 +2079,7 @@ impl RustCord {NavEntry { guild: self.current_guild, channel: self.current_channel, friends: self.friends_open }}- /// Record where we are for back / forward; call once per frame.+ /// Record where you are for back / forward; call once per frame.pub fn track_navigation(&mut self) {let here = self.nav_here();if self.nav_current == Some(here) {@@ -2847,7 +2847,7 @@ impl RustCord {return;}if !cm.loaded || cm.stale {- // Show the page we saw last time straight away (from disk) while+ // Show the page you saw last time straight away (from disk) while// the fresh one loads; the fresh page then replaces it.if !cm.loaded && cm.list.is_empty() && !self.demo {if let Some(cached) = self.account.and_then(|a| crate::cache::load_messages(a, channel)) {@@ -3012,7 +3012,7 @@ impl RustCord {self.ctx.memory_mut(|mem| mem.request_focus(egui::Id::new(("composer", channel.0))));}- /// Add our reaction if we haven't reacted with this emoji, else remove it.+ /// Add your reaction if you haven't reacted with this emoji, else remove it.pub fn toggle_reaction(&mut self, channel: Id, msg: Id, emoji: ReactionEmoji) {let Some(m) = self.store.message(channel, msg) else { return };let mine = m.reactions.iter().any(|r| r.me && r.emoji.same(&emoji));@@ -3162,7 +3162,7 @@ impl RustCord {self.theme.apply(&self.ctx);}- /// Your Discord settings arrived (at start, after a change of ours, or+ /// Your Discord settings arrived (at start, after a change of yours, or/// from the gateway when another app changed them: then your status is/// left alone, it has its own events).pub fn apply_account_settings(&mut self, s: discord::settings_proto::UserSettings, with_status: bool) {@@ -3956,7 +3956,7 @@ impl eframe::App for RustCord {Screen::Login => self.login_ui(ctx),Screen::Main => self.main_ui(ctx),}- // Games the profile cards drew but we don't know yet.+ // Games the profile cards drew but RustCord doesn't know yet.let wanted: Vec<Id> = self.apps_wanted.borrow_mut().drain().filter(|id| self.apps_requested.insert(*id)).collect();if !wanted.is_empty() {self.backend.send(Command::FetchApps(wanted));diff --git a/apps/rustcord/src/audio.rs b/apps/rustcord/src/audio.rsindex d1afac8..ace3509 100644--- a/apps/rustcord/src/audio.rs+++ b/apps/rustcord/src/audio.rs@@ -43,7 +43,7 @@ pub struct AudioPlayer {pub current: Option<Playing>,/// Downloaded files by URL.pub cache: HashMap<String, Arc<[u8]>>,- /// URL we're downloading in order to play it.+ /// URL RustCord is downloading in order to play it.pub waiting_for: Option<String>,pub muted: bool,/// Discord's own sounds by their name in Discord's client ("user_join"…),diff --git a/apps/rustcord/src/backend.rs b/apps/rustcord/src/backend.rsindex 59a9555..1a7d15d 100644--- a/apps/rustcord/src/backend.rs+++ b/apps/rustcord/src/backend.rs@@ -111,7 +111,7 @@ pub enum Command {FetchShop,/// Nitro subscriptions (for Nitro Home).FetchNitro,- /// Ask the gateway to put us in (or take us out of: `channel` None) a+ /// Ask the gateway to put you in (or take you out of: `channel` None) a/// voice channel: op 4.VoiceState { guild: Option<Id>, channel: Option<Id>, mute: bool, deaf: bool },/// Both halves of the voice credentials arrived: start the call.@@ -131,7 +131,7 @@ pub enum Command {/// Who READY tells Rich Presence programs they talk to.RpcUser(serde_json::Value),/// The games' Rich Presence activities now (application ID, RPC activity):- /// resolved (name, images) and put in our presence. Empty clears them.+ /// resolved (name, images) and put in your presence. Empty clears them.RpcActivities(Vec<(String, serde_json::Value)>),/// How loud one person plays (0.0–2.0; 0 for a local mute). Kept for later calls too.VoiceUserVolume { user: Id, volume: f32 },@@ -179,7 +179,7 @@ pub enum Command {StreamDelete(String),/// Op 22.StreamSetPaused { key: String, paused: bool },- /// Open our stream's media connection (needs the running call).+ /// Open your stream's media connection (needs the running call).GoLiveConnect { gen: u64, cfg: voice::StreamConfig, source: voice::ScreenSource, quality: voice::StreamQuality, audio: bool },/// Open a watched stream's media connection.WatchConnect { gen: u64, cfg: voice::StreamConfig },@@ -250,9 +250,9 @@ pub enum Event {CameraFeeds(std::sync::Arc<voice::CameraFeeds>),/// The camera: on (its handle, for the preview), off, or why it couldn't start.Camera(Result<Option<std::sync::Arc<voice::Camera>>, String>),- /// A Go Live connection (ours or one we watch) changed, with its generation.+ /// A Go Live connection (yours or one you watch) changed, with its generation.Stream(u64, voice::StreamEvent),- /// A Go Live connection started: its handle (ours, or the one we watch).+ /// A Go Live connection started: its handle (yours, or the one you watch).StreamHandle(u64, Option<std::sync::Arc<voice::StreamHandle>>, Option<std::sync::Arc<voice::WatchHandle>>),/// The account as of the last session (from disk), to show while the/// gateway connects. Ignored once the real READY has arrived.@@ -731,10 +731,10 @@ async fn run(mut rx: UnboundedReceiver<Command>, base: Emitter) {let mut http = Http::new(None);let mut gateway: Option<UnboundedSender<GatewayCommand>> = None;let mut registry: Option<JoinHandle<()>> = None;- // The voice call, and where we are (to resend op 4 on mute / deafen).+ // The voice call, and where you are (to resend op 4 on mute / deafen).let mut call: Option<voice::VoiceHandle> = None;let mut voice_where: Option<(Option<Id>, Id, bool, bool)> = None;- // Our camera is on in the call (voice states say so: `self_video`).+ // Your camera is on in the call (voice states say so: `self_video`).let mut video_on = false;let voice_state = |guild: Option<Id>, channel: Option<Id>, mute: bool, deaf: bool, video: bool| {serde_json::json!({@@ -755,7 +755,7 @@ async fn run(mut rx: UnboundedReceiver<Command>, base: Emitter) {// Discord hands back a token with each ack; the next ack sends it.let ack_token: std::sync::Arc<tokio::sync::Mutex<Option<String>>> = Default::default();// Rich Presence: the local discord-ipc pipe, and the games' activities as- // they go into our presence (with a generation so a slow lookup can't+ // they go into your presence (with a generation so a slow lookup can't// overwrite a newer update).let rpc_user: crate::rpc::SharedUser = std::sync::Arc::new(std::sync::Mutex::new(serde_json::Value::Null));let rpc_extra: std::sync::Arc<std::sync::Mutex<Vec<serde_json::Value>>> = Default::default();diff --git a/apps/rustcord/src/demo.rs b/apps/rustcord/src/demo.rsindex 1c8015b..fa31dbd 100644--- a/apps/rustcord/src/demo.rs+++ b/apps/rustcord/src/demo.rs@@ -579,7 +579,7 @@ fn script(channel: u64) -> &'static [(u64, &'static str)] {C_GENERAL => &[(FERRIS, "Welcome to **RustCord** 🦀 a native Discord client written in Rust. No Electron, no web runtime."),(CLIPPY, "It looks like you're trying to chat. Would you like help with that?"),- (CORRO, "**Rencord** is RustCord's built-in mod system, our own take on Vencord. Open ⚙️ → *Rencord Plugins* to toggle things."),+ (CORRO, "**Rencord** is RustCord's built-in mod system, RustCord's own take on Vencord. Open ⚙️ → *Rencord Plugins* to toggle things."),(FERRIS, "Markdown works: *italics*, __underline__, ~~strike~~, `inline code`, ||spoilers (click me)|| and [masked links](https://www.rust-lang.org)."),(CLIPPY, "```rust\nfn main() {\n println!(\"Hello from RustCord!\");\n}\n```"),(CORRO, "> quotes render too\n- and so do\n- bullet lists\n-# and subtext"),diff --git a/apps/rustcord/src/diagnostics.rs b/apps/rustcord/src/diagnostics.rsindex fc870fd..54000f2 100644--- a/apps/rustcord/src/diagnostics.rs+++ b/apps/rustcord/src/diagnostics.rs@@ -129,7 +129,7 @@ pub fn init() {mod windows_crash {use std::io::Write;use windows_sys::Win32::Foundation::HMODULE;- /// Let Windows carry on with its normal crash handling after we've logged.+ /// Let Windows carry on with its normal crash handling after RustCord has logged.const EXCEPTION_CONTINUE_SEARCH: i32 = 0;use windows_sys::Win32::System::Diagnostics::Debug::{SetUnhandledExceptionFilter, EXCEPTION_POINTERS};use windows_sys::Win32::System::LibraryLoader::{@@ -668,7 +668,7 @@ mod win_mem {}CloseHandle(snap);}- // Ours, then whatever descends from it.+ // RustCord's process, then whatever descends from it.let me = unsafe { GetCurrentProcessId() };let mut tree: Vec<ProcessInfo> = all.iter().filter(|p| p.pid == me).cloned().collect();let mut i = 0;diff --git a/apps/rustcord/src/features.rs b/apps/rustcord/src/features.rsindex e942776..32cda8f 100644--- a/apps/rustcord/src/features.rs+++ b/apps/rustcord/src/features.rs@@ -834,7 +834,7 @@ impl RustCord {}}- /// Add our reaction (never removes; the picker and menu always add).+ /// Add your reaction (never removes; the picker and menu always add).pub fn add_reaction(&mut self, channel: Id, msg: Id, emoji: ReactionEmoji) {let already = self.store@@ -1074,7 +1074,7 @@ impl RustCord {/// Whether you may pin and unpin in `channel`: always in DMs and group/// DMs; in a server with Manage Messages or Discord's newer Pin Messages- /// (the channel's overwrites applied when we know them).+ /// (the channel's overwrites applied when RustCord knows them).pub fn can_pin(&self, channel: Id) -> bool {const MANAGE_MESSAGES: u64 = 1 << 13;const PIN_MESSAGES: u64 = 1 << 51;@@ -1127,7 +1127,7 @@ impl RustCord {// ---- status -------------------------------------------------------------- /// Set our status ("online" | "idle" | "dnd" | "invisible") and custom status.+ /// Set your status ("online" | "idle" | "dnd" | "invisible") and custom status.pub fn set_status(&mut self, status: &str, custom: Option<discord::settings_proto::CustomStatus>) {self.store.my_status = status.to_string();self.store.my_custom = custom.clone();diff --git a/apps/rustcord/src/golive.rs b/apps/rustcord/src/golive.rsindex 4ff9e03..5e8054f 100644--- a/apps/rustcord/src/golive.rs+++ b/apps/rustcord/src/golive.rs@@ -3,7 +3,7 @@//! Discord's flow (main gateway): op 18 STREAM_CREATE asks to stream, op 20//! STREAM_WATCH asks to watch someone, op 19 STREAM_DELETE stops either. Discord//! answers with STREAM_CREATE (the stream's `rtc_server_id` / `rtc_channel_id`)-//! and STREAM_SERVER_UPDATE (token, endpoint); with our call's voice session+//! and STREAM_SERVER_UPDATE (token, endpoint); with your call's voice session//! those make a second voice connection that carries the video (the `voice`//! crate's `start_stream` / `watch_stream`). STREAM_UPDATE lists viewers;//! STREAM_DELETE ends it. Who is live comes from `self_stream` in voice states.@@ -111,7 +111,7 @@ pub struct GoLiveUi {pub card: Option<(Id, Id, egui::Pos2, u64)>,/// Stream preview pictures by stream key: (asked at, picture URL).pub previews: HashMap<String, (Instant, Option<String>)>,- /// Watch this person once the call we're joining is up.+ /// Watch this person once the call you're joining is up.pub pending_watch: Option<(Id, Id)>,/// The voice channel's text chat is open beside the call.pub chat_open: bool,@@ -227,7 +227,7 @@ impl RustCord {});}- /// Op 18: ask Discord for a stream in the call we're in.+ /// Op 18: ask Discord for a stream in the call you're in.fn start_go_live(&mut self, source: voice::ScreenSource, quality: voice::StreamQuality, audio: bool) {let Some(me) = self.store.me_id() else { return };let Some((guild, channel)) = self.voice.as_ref().filter(|v| v.connected).map(|v| (v.guild, v.channel)) else {diff --git a/apps/rustcord/src/hotkey.rs b/apps/rustcord/src/hotkey.rsindex a325e23..63ce9b0 100644--- a/apps/rustcord/src/hotkey.rs+++ b/apps/rustcord/src/hotkey.rs@@ -131,7 +131,7 @@ pub fn set_push_to_talk(key: Option<u32>) {};if want != sending {sending = want;- // (Checked again: the mode may have changed while we looked.)+ // (Checked again: the mode may have changed while RustCord looked.)if PTT_KEY.load(Ordering::Acquire) != 0 {voice::set_push_to_talk(Some(sending));}diff --git a/apps/rustcord/src/memprof.rs b/apps/rustcord/src/memprof.rsindex bb1b775..4e8e4aa 100644--- a/apps/rustcord/src/memprof.rs+++ b/apps/rustcord/src/memprof.rs@@ -96,7 +96,7 @@ unsafe impl GlobalAlloc for Prof {}}-/// The frames of a backtrace that say something: ours and our libraries',+/// The frames of a backtrace that say something: RustCord's and its libraries',/// without the allocator's and the runtime's own.fn short(trace: &str) -> String {let skip = ["memprof", "alloc::", "core::", "std::", "__rust", "backtrace", "hashbrown", "BaseThreadInitThunk", "RtlUserThreadStart", "mimalloc"];diff --git a/apps/rustcord/src/net_images.rs b/apps/rustcord/src/net_images.rsindex 08d0964..7bd31d4 100644--- a/apps/rustcord/src/net_images.rs+++ b/apps/rustcord/src/net_images.rs@@ -40,14 +40,14 @@ enum Entry {Failed(String, Instant),}-/// Our own URI tweaks live in the fragment (`#.gif`, `#still`): the server+/// RustCord's own URI tweaks live in the fragment (`#.gif`, `#still`): the server/// never sees it, so cache and fetch by the URL without it.fn without_fragment(uri: &str) -> &str {uri.split('#').next().unwrap_or(uri)}/// Per-frame URIs of animations → the animation: `x.gif#12` → `x.gif`-/// (egui's GIF frames), `x.mp4#vframe=3` → `x.mp4` (our GIF videos).+/// (egui's GIF frames), `x.mp4#vframe=3` → `x.mp4` (RustCord's GIF videos).fn gif_base(uri: &str) -> Option<&str> {if let Some((base, _)) = crate::video::split_frame_uri(uri) {return Some(base);@@ -158,7 +158,7 @@ impl ImageLoader for FastImages {fn load(&self, ctx: &egui::Context, uri: &str, _: SizeHint) -> ImageLoadResult {let web = uri.starts_with("https://");- // The player's frames and SVGs aren't ours. (A GIF is: its first frame.)+ // The player's frames and SVGs aren't this loader's. (A GIF is: its first frame.)let path = without_fragment(uri).split('?').next().unwrap_or(uri);let video_frame = crate::video::split_frame_uri(uri).is_some();if !web || video_frame || path.ends_with(".svg") {@@ -309,7 +309,7 @@ impl TextureLoader for LruTextures {return Ok(TexturePoll::Ready { texture });}// The clip moved on: replace the pixels in the same texture.- // Until the frame is decoded, keep showing the one we have.+ // Until the frame is decoded, keep showing the one RustCord has.return match ctx.try_load_image(uri, hint)? {ImagePoll::Pending { .. } => Ok(TexturePoll::Ready { texture }),ImagePoll::Ready { image } => {diff --git a/apps/rustcord/src/registry.rs b/apps/rustcord/src/registry.rsindex 177a5ac..813fae7 100644--- a/apps/rustcord/src/registry.rs+++ b/apps/rustcord/src/registry.rs@@ -26,7 +26,7 @@ use std::time::Duration;/// without one has no registry, and nobody gets a badge in it.const BUILT_IN_URL: Option<&str> = option_env!("RUSTCORD_REGISTRY_URL");-/// How often we say hello, and how long after the last hello someone still+/// How often RustCord says hello, and how long after the last hello someone still/// counts as "using RustCord right now" (two missed hellos).const HELLO_EVERY: Duration = Duration::from_secs(300);pub const ONLINE_FOR_SECS: u64 = 660;diff --git a/apps/rustcord/src/rpc.rs b/apps/rustcord/src/rpc.rsindex 3c84af2..9153a61 100644--- a/apps/rustcord/src/rpc.rs+++ b/apps/rustcord/src/rpc.rs@@ -16,7 +16,7 @@ use serde_json::{json, Value};use std::collections::HashMap;use std::sync::{Arc, Mutex};-/// Biggest frame we accept (activities are a few hundred bytes).+/// Biggest frame RustCord accepts (activities are a few hundred bytes).const MAX_FRAME: usize = 64 * 1024;#[derive(Debug, Clone)]@@ -27,7 +27,7 @@ pub enum RpcEvent {Closed { socket: u64 },}-/// The user READY reports to games (set once we're logged in).+/// The user READY reports to games (set once you're logged in).pub type SharedUser = Arc<Mutex<Value>>;#[cfg(windows)]diff --git a/apps/rustcord/src/store.rs b/apps/rustcord/src/store.rsindex 60a0f57..b8c0759 100644--- a/apps/rustcord/src/store.rs+++ b/apps/rustcord/src/store.rs@@ -88,7 +88,7 @@ pub struct MemberList {pub group_counts: HashMap<String, u32>,}-/// What we know of someone's membership in a server (for name colours,+/// What RustCord knows of someone's membership in a server (for name colours,/// nicknames and role icons in chat).#[derive(Clone, Debug, Default)]pub struct MemberInfo {@@ -169,7 +169,7 @@ fn murmur3(bytes: &[u8]) -> u32 {hash ^ (hash >> 16)}-/// Where we've read up to in a channel, and unread mentions.+/// Where you've read up to in a channel, and unread mentions.#[derive(Clone, Copy, Debug, Default)]pub struct ReadState {pub last_read: Option<Id>,@@ -214,7 +214,7 @@ pub struct Store {pub guilds: HashMap<Id, GuildState>,pub channels: HashMap<Id, Channel>,pub messages: HashMap<Id, ChannelMessages>,- /// Our own role ids per guild, for permission checks.+ /// Your own role ids per guild, for permission checks.pub my_roles: HashMap<Id, Vec<Id>>,pub users: HashMap<Id, User>,pub typing: HashMap<Id, Vec<Typist>>,@@ -223,7 +223,7 @@ pub struct Store {pub muted_channels: HashSet<Id>,/// When a timed channel mute ends (RFC 3339), for "Muted until …".pub channel_mute_until: HashMap<Id, String>,- /// Threads we are a member of (Discord lists these under their channel).+ /// Threads you are a member of (Discord lists these under their channel).pub joined_threads: HashSet<Id>,/// DMs pinned to the top of the list. Discord keeps this as the FAVORITED flag/// (2048) of the DM's channel override in the private ("@me") notification settings.@@ -245,14 +245,14 @@ pub struct Store {pub folders: Vec<Folder>,/// Pinned DMs and the Favourites server (account settings).pub favorites: discord::settings_proto::Favorites,- /// Our own status and custom status.+ /// Your own status and custom status.pub my_status: String,pub my_custom: Option<CustomStatus>,/// Lazy member lists by (guild, list id).pub member_lists: HashMap<(Id, String), MemberList>,/// Known server members by (guild, user).pub members: HashMap<(Id, Id), MemberInfo>,- /// Members already asked for (op 8), so we don't ask twice.+ /// Members already asked for (op 8), so RustCord doesn't ask twice.pub members_requested: HashSet<(Id, Id)>,/// Who's in which voice channel: channel → users.pub voice: HashMap<Id, Vec<Id>>,@@ -450,7 +450,7 @@ impl Store {}}- // Our own status from the sessions list (what other clients show us as).+ // Your own status from the sessions list (what other clients show you as).if let Some(s) = d["sessions"].as_array().and_then(|a| a.first()) {if let Some(st) = s["status"].as_str() {self.my_status = st.to_string();@@ -598,7 +598,7 @@ impl Store {channel_ids.push(c.id);self.channels.insert(c.id, c);}- // Active threads we're in come with the server.+ // Active threads you're in come with the server.for t in g["threads"].as_array().into_iter().flatten() {if let Ok(mut c) = Channel::deserialize(t) {c.guild_id = Some(id);@@ -609,8 +609,8 @@ impl Store {self.channels.insert(c.id, c);}}- // Our roles here (classic READY / GUILD_CREATE list our own member),- // needed to hide channels we can't see.+ // Your roles here (classic READY / GUILD_CREATE list your own member),+ // needed to hide channels you can't see.if let Some(me) = self.me_id() {for m in g["members"].as_array().into_iter().flatten() {let uid = Id::from_value(&m["user"]["id"]).or_else(|| Id::from_value(&m["user_id"]));@@ -640,7 +640,7 @@ impl Store {pub fn upsert_channel(&mut self, v: &Value) {let Ok(ch) = Channel::deserialize(v) else { return };- // A thread sent with our membership of it: we're in it.+ // A thread sent with your membership of it: you're in it.if v["member"].is_object() && channel_kind::is_thread(ch.kind) {self.joined_threads.insert(ch.id);}@@ -688,7 +688,7 @@ impl Store {}/// THREAD_LIST_SYNC: the active threads of a server (or of the channels- /// named), and which of them we're in.+ /// named), and which of them you're in.pub fn thread_list_sync(&mut self, v: &Value) {let gid = Id::from_value(&v["guild_id"]);for t in v["threads"].as_array().into_iter().flatten() {@@ -705,8 +705,8 @@ impl Store {}}- /// THREAD_MEMBERS_UPDATE: people joined or left a thread; we only track- /// ourselves.+ /// THREAD_MEMBERS_UPDATE: people joined or left a thread; RustCord only+ /// tracks your own.pub fn thread_members_update(&mut self, v: &Value) {let (Some(id), Some(me)) = (Id::from_value(&v["id"]), self.me_id()) else { return };if v["added_members"].as_array().into_iter().flatten().any(|m| Id::from_value(&m["user_id"]) == Some(me)) {@@ -717,7 +717,7 @@ impl Store {}}- /// A channel RustCord can open: one we know, of a kind Discord's channel+ /// A channel RustCord can open: one it knows, of a kind Discord's channel/// list shows (so not the server hub), or a thread.pub fn can_open(&self, id: Id) -> bool {self.channels.get(&id).is_some_and(|c| {@@ -766,7 +766,7 @@ impl Store {// ---- permissions ----------------------------------------------------- /// Our server-wide permissions (all of them for the owner / admins).+ /// Your server-wide permissions (all of them for the owner / admins).pub fn guild_perms(&self, gid: Id) -> u64 {let (Some(g), Some(me)) = (self.guilds.get(&gid), self.me_id()) else { return 0 };if g.guild.owner_id == Some(me) {@@ -799,7 +799,7 @@ impl Store {g.guild.owner_id.filter(|_| !hoisted_admin)}- /// Position of our highest role (roles below it are ones we can manage).+ /// Position of your highest role (roles below it are ones you can manage).pub fn my_top_role(&self, gid: Id) -> i64 {let Some(g) = self.guilds.get(&gid) else { return 0 };if g.guild.owner_id.is_some() && g.guild.owner_id == self.me_id() {@@ -815,12 +815,12 @@ impl Store {ch.permission_overwrites.iter().any(|o| o.id == g && !o.is_member() && o.deny_bits() & permissions::VIEW_CHANNEL != 0)}- /// Whether we can see a channel. Unknown data errs on showing it.+ /// Whether you can see a channel. Unknown data errs on showing it.pub fn can_view(&self, ch: &Channel) -> bool {self.channel_perms(ch).map_or(true, |p| p & permissions::VIEW_CHANNEL != 0)}- /// Whether we may post in a channel (DMs: yes). Unknown data errs on yes.+ /// Whether you may post in a channel (DMs: yes). Unknown data errs on yes.pub fn can_send(&self, ch: &Channel) -> bool {const SEND_IN_THREADS: u64 = 1 << 38;let thread = channel_kind::is_thread(ch.kind);@@ -851,17 +851,17 @@ impl Store {has(ADD_REACTIONS)}- /// Our permissions in a server channel, overwrites applied (Discord's- /// algorithm: @everyone, roles, member). None for DMs or when we don't+ /// Your permissions in a server channel, overwrites applied (Discord's+ /// algorithm: @everyone, roles, member). None for DMs or when RustCord doesn't/// know enough yet.pub fn channel_perms(&self, ch: &Channel) -> Option<u64> {let base = self.base_perms(ch.guild_id?)?;self.channel_perms_from(ch, base)}- /// Our server-wide permissions before any channel overwrite (@everyone- /// plus our roles), `u64::MAX` for the owner and administrators. None- /// when we don't know enough yet. The same for every channel of a+ /// Your server-wide permissions before any channel overwrite (@everyone+ /// plus your roles), `u64::MAX` for the owner and administrators. None+ /// when RustCord doesn't know enough yet. The same for every channel of a/// server, so callers scanning many channels compute it once.pub fn base_perms(&self, gid: Id) -> Option<u64> {let (g, me) = (self.guilds.get(&gid)?, self.me_id()?);@@ -986,10 +986,10 @@ impl Store {.channels.iter().filter_map(|id| self.channels.get(id))- // (Discord's list: no server hub, nothing it sent us blanked.)+ // (Discord's list: no server hub, nothing it sent RustCord blanked.).filter(|c| channel_kind::is_listed(c.kind) && c.flags & Channel::FLAG_OBFUSCATED == 0).collect();- // A channel's row, then the threads of it we're in.+ // A channel's row, then the threads of it you're in.// (Grouped once: this runs every frame, for every channel.)let mut threads: HashMap<Id, Vec<&Channel>> = HashMap::new();for t in self.joined_threads.iter().filter_map(|id| self.channels.get(id)).filter(|t| t.guild_id == Some(gid) && !t.archived()) {@@ -1067,7 +1067,7 @@ impl Store {dms.into_iter().map(|c| c.id).collect()}- /// Favourited server channels we can still see (the Favourites server).+ /// Favourited server channels you can still see (the Favourites server).pub fn favorite_channels(&self) -> Vec<&discord::settings_proto::Favorite> {self.favorites.channels@@ -1099,7 +1099,7 @@ impl Store {// ---- read states ------------------------------------------------------- /// New messages since we last read the channel?+ /// New messages since you last read the channel?pub fn is_unread(&self, ch: Id) -> bool {let Some(c) = self.channels.get(&ch) else { return false };// (Permissions only matter for a channel without a read state.)@@ -1116,7 +1116,7 @@ impl Store {match self.read_states.get(&c.id) {Some(rs) => rs.last_read.is_none_or(|r| last > r),// No read state at all: Discord treats DMs as read, guild channels- // as unread (when we can see them; unknown data errs on showing).+ // as unread (when you can see them; unknown data errs on showing).None => {c.guild_id.is_some()&& match base {@@ -1167,7 +1167,7 @@ impl Store {rs.last_read = Some(Id(msg.0.saturating_sub(1)));}- /// Does this message ping us (direct, @everyone/@here, or one of our roles)?+ /// Does this message ping you (direct, @everyone/@here, or one of your roles)?pub fn mentions_me(&self, m: &Message) -> bool {let Some(me) = self.me_id() else { return false };if m.author.id == me {@@ -1188,7 +1188,7 @@ impl Store {let id = Id::from_value(&v["message_id"]);// Like Discord's ReadStateStore: only a manual ack ("Mark Unread",// here or on another device) moves the marker back. Otherwise an- // ack's echo arriving after a newer one (ours: acks go out while+ // ack's echo arriving after a newer one (RustCord's: acks go out while// messages keep coming) made a channel you were reading unread again.let manual = v["manual"].as_bool().unwrap_or(false);if !manual && id.is_some_and(|id| rs.last_read.is_some_and(|r| id < r)) {@@ -1351,7 +1351,7 @@ impl Store {}}for (u, p) in fresh_presences {- // People we already track get live PRESENCE_UPDATEs; the list's+ // People RustCord already tracks get live PRESENCE_UPDATEs; the list's// copy is this server's view and mustn't replace theirs.if !self.presence_ts.contains_key(&u.id) && (p.status != "offline" || self.presences.contains_key(&u.id)) {self.presences.insert(u.id, p);@@ -1374,7 +1374,7 @@ impl Store {self.members.get(&(guild?, user))?.styles.as_ref()}- /// Authors in a server's messages we have no member info for yet.+ /// Authors in a server's messages RustCord has no member info for yet.pub fn unknown_members(&self, guild: Id, msgs: &[Message]) -> Vec<Id> {let mut out: Vec<Id> = msgs.iter()@@ -1387,7 +1387,7 @@ impl Store {out}- /// The voice channel `user` is in (in servers we share), if any.+ /// The voice channel `user` is in (in servers you share), if any.pub fn voice_channel_of(&self, user: Id) -> Option<Id> {self.voice.iter().find(|(_, users)| users.contains(&user)).map(|(c, _)| *c)}@@ -1439,7 +1439,7 @@ impl Store {}}- /// People in voice channels of `guild` we have no user / member info for.+ /// People in voice channels of `guild` RustCord has no user / member info for.pub fn unknown_voice_members(&self, guild: Id) -> Vec<Id> {let gs = match self.guilds.get(&guild) {Some(gs) => gs,@@ -1623,13 +1623,13 @@ impl Store {}/// Insert a live message. Ignored (returns false) if the channel's history- /// hasn't been loaded yet, so we never show a channel with a gap.+ /// hasn't been loaded yet, so RustCord never shows a channel with a gap.pub fn insert_message(&mut self, m: Message) -> bool {// Messages from channels that aren't open are dropped (and their// authors not remembered): on a big account that's most traffic.let Some(cm) = self.messages.get_mut(&m.channel_id).filter(|cm| cm.loaded) else { return false };self.users.insert(m.author.id, m.author.clone());- // Replace our optimistic copy when the gateway echoes it back.+ // Replace RustCord's optimistic copy when the gateway echoes it back.if let Some(nonce) = m.nonce_string() {cm.list.retain(|x| !(x.meta.pending && x.nonce_string().as_deref() == Some(nonce.as_str())));}@@ -1980,7 +1980,7 @@ mod tests {}/// The compact READY (IDENTIFY with capabilities): everyone once in- /// `users` and named by ID elsewhere, our own members in `merged_members`,+ /// `users` and named by ID elsewhere, your own members in `merged_members`,/// a server's details under `properties`, read states that aren't/// channels, and no settings but the account's own (already in `folders`).#[test]diff --git a/apps/rustcord/src/tray.rs b/apps/rustcord/src/tray.rsindex 2d1e062..ef8f5aa 100644--- a/apps/rustcord/src/tray.rs+++ b/apps/rustcord/src/tray.rs@@ -19,7 +19,7 @@ pub enum TrayAction {Reset,Restart,Quit,- /// A notification of ours was clicked.+ /// A RustCord notification was clicked.Notification,/// Linux: the desktop started showing status notifier items again.#[cfg(target_os = "linux")]@@ -527,7 +527,7 @@ mod win {match (lparam & 0xffff) as u32 {WM_LBUTTONUP => send(TrayAction::Open),WM_RBUTTONUP | WM_CONTEXTMENU => show_menu(hwnd),- // NIN_BALLOONUSERCLICK: our notification was clicked.+ // NIN_BALLOONUSERCLICK: RustCord's notification was clicked.0x0405 => send(TrayAction::Notification),_ => {}}diff --git a/apps/rustcord/src/ui/boosts.rs b/apps/rustcord/src/ui/boosts.rsindex e692df3..7b03d13 100644--- a/apps/rustcord/src/ui/boosts.rs+++ b/apps/rustcord/src/ui/boosts.rs@@ -464,7 +464,7 @@ impl BoostsData {if self.unlocked.contains_key(&p.sku) {return (Status::Active, ends(&p.sku));}- // Until Discord says what is switched on, the level is what we know.+ // Until Discord says what is switched on, the level is what RustCord knows.match level {Some(n) if !self.unlocked_known && tier as usize > n => (Status::Active, None),_ => (Status::Inactive, None),diff --git a/apps/rustcord/src/ui/call.rs b/apps/rustcord/src/ui/call.rsindex 17de1ac..5fb14b7 100644--- a/apps/rustcord/src/ui/call.rs+++ b/apps/rustcord/src/ui/call.rs@@ -271,7 +271,7 @@ impl RustCord {}}- /// Everyone in `channel` (us first when we're in it, even before the gateway confirms).+ /// Everyone in `channel` (you first when you're in it, even before the gateway confirms).fn call_tile_data(&self, channel: Id, gid: Option<Id>) -> Vec<Tile> {let me = self.store.me_id();let in_call = self.voice.as_ref().is_some_and(|v| v.channel == channel);@@ -876,7 +876,7 @@ impl RustCord {/// Discord's call area above a DM's messages: everyone in the DM (in the call, being/// rung, or not there), switching to video tiles / stage when someone streams or uses- /// camera, then the call controls or "Join Call" while we're not in it.+ /// camera, then the call controls, or "Join Call" while you're not in it.pub fn dm_call_panel(&mut self, ui: &mut Ui, channel: Id) {let t = self.theme.clone();let area = ui.max_rect();@@ -1000,7 +1000,7 @@ impl RustCord {if in_call {self.call_controls(ui, &t, bar, false);} else {- // Join Call (and Decline while it rings us).+ // Join Call (and Decline while it rings you).let rings_me = me.is_some_and(|m| ringing.contains(&m)) && !self.dismissed_calls.contains(&channel);let bold = FontId::new(14.0, egui::FontFamily::Name(crate::style::BOLD.into()));let (w, h, gap) = (112.0, 38.0, 12.0);diff --git a/apps/rustcord/src/ui/chat.rs b/apps/rustcord/src/ui/chat.rsindex 0e4dcd2..09b246f 100644--- a/apps/rustcord/src/ui/chat.rs+++ b/apps/rustcord/src/ui/chat.rs@@ -83,7 +83,7 @@ pub enum UiAction {MarkRead(Id),/// Scrolled up to the NEW line: the bar has done its job.HideNewBar(Id),- /// Open a thread (fetched first if we don't know it yet).+ /// Open a thread (fetched first if RustCord doesn't know it yet).OpenThread(Id),/// Rencord's MessageSelect: check a message off (or un-check it).PickMessage { channel: Id, msg: Id },@@ -690,7 +690,7 @@ fn upload_tile(ui: &mut Ui, t: &crate::style::Theme, u: &crate::features::Pendinimpl RustCord {pub fn chat_ui(&mut self, ui: &mut Ui) {- // A thread we had to fetch before opening it.+ // A thread RustCord had to fetch before opening it.match self.api_take("open-thread") {Some(Ok(v)) => {self.store.upsert_channel(&v);@@ -1149,7 +1149,7 @@ impl RustCord {return;}// Taken out of the input, so a text selection or the message box- // doesn't copy over ours.+ // doesn't copy over RustCord's.let (copy, clear) = self.ctx.input_mut(|i| {let before = i.events.len();i.events.retain(|e| !matches!(e, egui::Event::Copy));@@ -2423,7 +2423,7 @@ impl RustCord {m.guild_id.or_else(|| self.store.channels.get(&m.channel_id).and_then(|c| c.guild_id))}- /// The author's roles here: from the message, else what we know of them.+ /// The author's roles here: from the message, else what RustCord knows of them.fn author_roles(&self, m: &Message) -> Vec<Id> {if let Some(mem) = &m.member {return mem.roles.clone();@@ -2855,7 +2855,7 @@ impl RustCord {/// AutoMod's messages (type 24), drawn like Discord's: a raid alert card/// ("Unusual Mention Activity Detected", what it did, Remove/// Restrictions / Configure Settings), or "AutoMod has blocked a message"- /// with the blocked text and the rule. False if it isn't one we know.+ /// with the blocked text and the rule. False if it isn't one RustCord knows.fn automod_ui(&self, ui: &mut Ui, m: &Message, actions: &mut Vec<UiAction>) -> bool {let t = &self.theme;let Some(e) = m.embeds.first() else { return false };@@ -3585,7 +3585,7 @@ impl RustCord {}Inline::Channel(id) => {// Discord: the channel's icon (# or a speaker) and its- // name; one we can't see is "# unknown" and inert.+ // name; one you can't see is "# unknown" and inert.let known = self.store.channels.get(id);let voice = known.is_some_and(|c| matches!(c.kind, 2 | 13));let glyph = if voice { icon::VOICE } else { icon::HASH };diff --git a/apps/rustcord/src/ui/emoji_frecency.rs b/apps/rustcord/src/ui/emoji_frecency.rsindex 291213a..044824c 100644--- a/apps/rustcord/src/ui/emoji_frecency.rs+++ b/apps/rustcord/src/ui/emoji_frecency.rs@@ -155,7 +155,7 @@ impl RustCord {let sent = std::mem::take(&mut self.compose.emoji_sent);match r {Ok(v) if v["out_of_date"].as_bool() == Some(true) => {- // Changed elsewhere meanwhile: fetch it, ours go on top, try again.+ // Changed elsewhere meanwhile: fetch it, RustCord's go on top, try again.log::info!("emoji frecency: changed elsewhere, merging");self.compose.frecency_at = None;self.want_frecency();diff --git a/apps/rustcord/src/ui/expression.rs b/apps/rustcord/src/ui/expression.rsindex 18f51b5..6848c27 100644--- a/apps/rustcord/src/ui/expression.rs+++ b/apps/rustcord/src/ui/expression.rs@@ -1076,7 +1076,7 @@ impl RustCord {let fresh = v["settings"].as_str().and_then(|s| decode_frecency(s).ok());let out_of_date = v["out_of_date"].as_bool() == Some(true);match (fresh, out_of_date, pending) {- // Changed elsewhere meanwhile: apply ours on top, once.+ // Changed elsewhere meanwhile: apply RustCord's on top, once.(Some(f), true, Some((gif, add, false))) => {self.compose.frecency = Some(f);self.replay_pending_emoji();diff --git a/apps/rustcord/src/ui/forum.rs b/apps/rustcord/src/ui/forum.rsindex 85c8d10..98a9c38 100644--- a/apps/rustcord/src/ui/forum.rs+++ b/apps/rustcord/src/ui/forum.rs@@ -39,8 +39,8 @@ pub struct ForumState {posts: Vec<Id>,/// Each post's first message, for the preview line and thumbnail.first: HashMap<Id, Message>,- /// Posts Discord listed for us (so a missing first message means it was- /// deleted, not that we haven't asked).+ /// Posts Discord listed for RustCord (so a missing first message means it was+ /// deleted, not that RustCord hasn't asked).listed: std::collections::HashSet<Id>,has_more: bool,loaded: bool,@@ -617,7 +617,7 @@ impl RustCord {// ---- the posts ----// Active posts first: the ones Discord listed, and any the- // gateway has told us of since (a post made just now).+ // gateway has told RustCord of since (a post made just now).let by_creation = self.forum.by_creation;let tags = &self.forum.tags;let mut posts: Vec<&Channel> = selfdiff --git a/apps/rustcord/src/ui/guild_menu.rs b/apps/rustcord/src/ui/guild_menu.rsindex b6c6597..e2d06e7 100644--- a/apps/rustcord/src/ui/guild_menu.rs+++ b/apps/rustcord/src/ui/guild_menu.rs@@ -816,7 +816,7 @@ impl RustCord {fn threads_dialog(&mut self, ctx: &egui::Context, g: Id) -> bool {let t = self.theme.clone();- // Active threads the gateway told us about, newest first, by channel.+ // Active threads the gateway told RustCord about, newest first, by channel.let mut threads: Vec<(String, Id, String, u32)> = self.store.channelsdiff --git a/apps/rustcord/src/ui/guild_pages.rs b/apps/rustcord/src/ui/guild_pages.rsindex 7edad36..8d91bfd 100644--- a/apps/rustcord/src/ui/guild_pages.rs+++ b/apps/rustcord/src/ui/guild_pages.rs@@ -1030,7 +1030,7 @@ impl RustCord {ctx.request_repaint_after(Duration::from_secs_f64(secs));}Ok(v) => {- // Remember who we saw (names and colours elsewhere use it).+ // Remember who RustCord saw (names and colours elsewhere use it).for m in v["members"].as_array().into_iter().flatten() {let mem = &m["member"];if Id::from_value(&mem["user"]["id"]).is_some() {@@ -1054,7 +1054,7 @@ impl RustCord {m.page = 0;}m.total = v["total_result_count"].as_u64();- // Done when a page brings nobody new (or we have everyone).+ // Done when a page brings nobody new (or RustCord has everyone).m.exhausted = m.rows.len() == before || m.total.is_some_and(|t| m.rows.len() as u64 >= t);if m.exhausted && !m.rows.is_empty() {m.page = m.page.min((m.rows.len() - 1) / m.per_page);@@ -1063,7 +1063,7 @@ impl RustCord {m.fallback = false;}Err(e) if self.guild_pages.members.as_ref().is_some_and(|m| m.append) => {- // A later page failed: keep what we have.+ // A later page failed: keep what RustCord has.if let Some(m) = self.guild_pages.members.as_mut() {m.loading = false;m.exhausted = true;@@ -1448,7 +1448,7 @@ impl RustCord {let products: Option<Vec<Product>> = match self.api_result(&tag) {None if self.api_busy(&tag) => None,Some(Ok(v)) => Some(parse_products(v)),- // Not set up (or not available to us): the intro.+ // Not set up (or not available to you): the intro._ => Some(Vec::new()),};let empty = products.as_ref().is_some_and(|p| p.is_empty());diff --git a/apps/rustcord/src/ui/interactions.rs b/apps/rustcord/src/ui/interactions.rsindex 135c202..3c831cc 100644--- a/apps/rustcord/src/ui/interactions.rs+++ b/apps/rustcord/src/ui/interactions.rs@@ -122,7 +122,7 @@ impl RustCord {}/// The app answered (`ok`) or failed to. True when `nonce` was one of- /// ours (a button, select or form; slash commands report on their own).+ /// RustCord's (a button, select or form; slash commands report on their own).pub fn interaction_done(&mut self, nonce: &str, ok: bool) -> bool {let mut ours = false;if self.interaction.as_ref().is_some_and(|p| p.nonce == nonce) {diff --git a/apps/rustcord/src/ui/members.rs b/apps/rustcord/src/ui/members.rsindex c530ad3..10b426c 100644--- a/apps/rustcord/src/ui/members.rs+++ b/apps/rustcord/src/ui/members.rs@@ -158,7 +158,7 @@ impl RustCord {}}}- // Near the end of what we have: ask Discord for the next 100.+ // Near the end of what RustCord has: ask Discord for the next 100.let loaded = list.items.len();loaded_items = loaded;let total = (list.member_count as usize).max(loaded);@@ -167,7 +167,7 @@ impl RustCord {}ui.add_space(super::USER_PANEL_SPACE / 2.0);});- // Only once the windows we asked for are full: in a private channel+ // Only once the windows RustCord asked for are full: in a private channel// Discord's member_count is the whole server's, so "fewer than the// total" stayed true and this asked for a window more every frame —// and Discord ends the session (4002) when a subscription has morediff --git a/apps/rustcord/src/ui/mentions.rs b/apps/rustcord/src/ui/mentions.rsindex 3180a31..f851099 100644--- a/apps/rustcord/src/ui/mentions.rs+++ b/apps/rustcord/src/ui/mentions.rs@@ -133,7 +133,7 @@ fn replace_names(text: &str, sigil: char, names: &[(String, String)]) -> String}impl RustCord {- /// Everyone we know who can be mentioned in a channel, most recent+ /// Everyone RustCord knows who can be mentioned in a channel, most recent/// speakers first: (user, server nickname).pub(super) fn mention_pool(&self, ch: Id) -> Vec<(User, Option<String>)> {let Some(channel) = self.store.channels.get(&ch) else { return Vec::new() };@@ -177,7 +177,7 @@ impl RustCord {out}- /// The server's channels "#" can name: the text-like ones we can see (in+ /// The server's channels "#" can name: the text-like ones you can see (in/// sidebar order), then its threads. Discord's list has no voice channels.pub(super) fn channel_pool(&self, ch: Id) -> Vec<&discord::model::Channel> {let Some(guild) = self.store.channels.get(&ch).and_then(|c| c.guild_id) else { return Vec::new() };@@ -420,7 +420,7 @@ impl RustCord {}self.compose.mention_dismissed = None;let guild = self.store.channels.get(&ch).and_then(|c| c.guild_id);- // Members we haven't met yet: ask Discord for ones matching the text+ // Members RustCord hasn't met yet: ask Discord for ones matching the text// (they arrive as a member chunk and show up on a later frame).if let Some(g) = guild.filter(|_| m.sigil == '@' && !m.query.is_empty()) {let key = (g, m.query.clone());diff --git a/apps/rustcord/src/ui/moderation.rs b/apps/rustcord/src/ui/moderation.rsindex 418b1dd..7aa4835 100644--- a/apps/rustcord/src/ui/moderation.rs+++ b/apps/rustcord/src/ui/moderation.rs@@ -375,7 +375,7 @@ impl RustCord {} else if Some(user.id) != self.store.me_id()&& self.store.has_perm(guild, MODERATE_MEMBERS | KICK_MEMBERS | BAN_MEMBERS | permissions::MANAGE_ROLES | MANAGE_NICKNAMES){- // Their roles decide what we may do; the timeout, which row shows.+ // Their roles decide what you may do; the timeout, which row shows.self.moderation.fetched.insert(key);self.mod_send(Op::Fetch { guild }, Method::GET, format!("/guilds/{guild}/members/{}", user.id), None, "");}@@ -570,8 +570,8 @@ impl RustCord {// ---- who may do what ---------------------------------------------------------------- /// Whether the role hierarchy lets us act on `user`: not ourselves, never- /// the owner, and their highest role below ours unless we own the server.+ /// Whether the role hierarchy lets you act on `user`: not yourself, never+ /// the owner, and their highest role below yours unless you own the server.fn mod_outranks(&self, guild: Id, user: Id) -> bool {let (Some(gs), Some(me)) = (self.store.guilds.get(&guild), self.store.me_id()) else { return false };if user == me || gs.guild.owner_id == Some(user) {@@ -637,7 +637,7 @@ impl RustCord {let gs = &self.store.guilds[&g];let has_roles = gs.guild.roles.iter().any(|r| r.id != g);// The Roles submenu: every role but @everyone, highest first; the ones- // we can't hand out (managed, or not below our top role) greyed.+ // you can't hand out (managed, or not below your top role) greyed.let role_rows: Vec<(Id, String, u32, bool, bool)> = if roles_at.is_some() {let mine = self.store.members.get(&(g, uid)).map(|m| m.roles.as_slice()).unwrap_or(&[]);let top = self.store.my_top_role(g);@@ -873,7 +873,7 @@ impl RustCord {fn mod_dialog_ui(&mut self, ctx: &egui::Context) {let Some(mut dialog) = self.moderation.dialog.take() else { return };let t = self.theme.clone();- // Escape is ours while a dialog is up (Server Settings would close too).+ // Escape is the dialog's while one is up (Server Settings would close too).let mut close = ctx.input_mut(|i| i.consume_key(Modifiers::NONE, Key::Escape));// What the action button sends: (op, method, path, body, audit-log reason).let mut send: Option<(Op, Method, String, Option<Value>, String)> = None;diff --git a/apps/rustcord/src/ui/profile.rs b/apps/rustcord/src/ui/profile.rsindex 6a0bdc7..55cdc47 100644--- a/apps/rustcord/src/ui/profile.rs+++ b/apps/rustcord/src/ui/profile.rs@@ -158,7 +158,7 @@ fn paint_return_icon(painter: &egui::Painter, rect: Rect, color: Color32) {}/// Card background with its drop shadow underneath (a Frame's own shadow-/// would be painted over a background we set afterwards).+/// would be painted over a background RustCord sets afterwards).fn with_shadow(card: egui::Shape, rect: Rect) -> egui::Shape {egui::Shape::Vec(vec![egui::Shape::Rect(shadow().as_shape(rect, Rounding::same(12.0))), card])}@@ -1056,7 +1056,7 @@ impl RustCord {}/// Listen Along keeps following: when their song changes, play the new- /// one; when they stop listening, so do we. Cheap; runs every frame.+ /// one; when they stop listening, so do you. Cheap; runs every frame.pub(crate) fn listen_along_tick(&mut self) {let Some((user, last)) = self.listen_along.clone() else { return };match self.spotify_of(user) {@@ -1094,7 +1094,7 @@ impl RustCord {let mut out = CardOut::default();let expandable = kind != CardKind::Full;let data = self.profiles.get(&(user.id, guild));- // While this server's profile loads, show what we already know about+ // While this server's profile loads, show what RustCord already knows about// them (banner, bio, badges, theme from another server or their// global profile) instead of an empty card; roles wait for the real one.let exact = data.and_then(|r| r.as_ref().ok());@@ -3208,7 +3208,7 @@ impl RustCord {labels.push((TAB_SERVERS, plural(servers_n, "Mutual Server", "Mutual Servers")));}// Asked for the Board (or no tab yet) before the profile arrived:- // keep that until we know what there is.+ // keep that until RustCord knows what there is.if !labels.iter().any(|(k, _)| *k == tab) && !(matches!(tab, TAB_BOARD | TAB_FIRST) && profile.is_none()) {tab = if tab == TAB_FIRST { labels[0].0 } else { TAB_ACTIVITY };}@@ -3445,7 +3445,7 @@ impl RustCord {let (r, resp) = ui.allocate_exact_size(size, Sense::hover());ui.painter().add(Shadow { offset: vec2(0.0, 3.0), blur: 12.0, spread: 0.0, color: Color32::from_black_alpha(41) }.as_shape(r, Rounding::same(8.0)));let app = self.apps.get(&game);- // (Asked for again when all we have is from before covers were fetched.)+ // (Asked for again when all RustCord has is from before covers were fetched.)if app.is_none_or(|a| a.game_cover.is_none()) {self.apps_wanted.borrow_mut().insert(game);}diff --git a/apps/rustcord/src/ui/server_settings.rs b/apps/rustcord/src/ui/server_settings.rsindex e40bd3d..8248f97 100644--- a/apps/rustcord/src/ui/server_settings.rs+++ b/apps/rustcord/src/ui/server_settings.rs@@ -662,7 +662,7 @@ impl Ss {}}- /// Whether we may leave this page / form; if not, the save bar nags.+ /// Whether you may leave this page / form; if not, the save bar nags.fn can_leave(&mut self, now: f64) -> bool {if self.dirty() {self.nag_at = now;@@ -1031,7 +1031,7 @@ impl RustCord {}}- /// The emoji pickers read the store: give it the list we just changed.+ /// The emoji pickers read the store: give it the list you just changed.fn ss_sync_store_emojis(&mut self, g: Id) {let Some(Ok(Value::Array(list))) = self.api_result(&tag_emojis(g)) else { return };let emojis: Vec<GuildEmoji> = list.iter().filter_map(|v| GuildEmoji::deserialize(v).ok()).collect();@@ -1050,7 +1050,7 @@ impl RustCord {}}- /// Handle the answers to our calls that came in.+ /// Handle the answers to RustCord's calls that came in.fn ss_poll(&mut self, st: &mut Ss) {let pending = std::mem::take(&mut st.pending);for (tag, p) in pending {@@ -2794,7 +2794,7 @@ impl RustCord {let taken: Vec<Id> = rows.iter().map(|r| r.id).collect();let mut addable: Vec<&discord::model::Role> = gs.guild.roles.iter().filter(|r| !taken.contains(&r.id)).collect();addable.sort_by_key(|r| (std::cmp::Reverse(r.position), r.id));- // Members we know in this server (search fills in more over op 8).+ // Members RustCord knows in this server (search fills in more over op 8).let mut members: Vec<(Id, String, String, String)> = self.store.membersdiff --git a/apps/rustcord/src/ui/settings.rs b/apps/rustcord/src/ui/settings.rsindex ff2d0e5..c177ab5 100644--- a/apps/rustcord/src/ui/settings.rs+++ b/apps/rustcord/src/ui/settings.rs@@ -736,7 +736,7 @@ impl RustCord {}_ => {}}- // A change to the newer settings store: what we show is already the+ // A change to the newer settings store: what RustCord shows is already the// new value, so only a failure needs handling (ask for the real ones).if let Some(Err(e)) = self.api_take("us:proto") {self.toast(format!("Couldn't save that setting: {e}"), true);diff --git a/apps/rustcord/src/ui/sidebar.rs b/apps/rustcord/src/ui/sidebar.rsindex 5b44629..9b47285 100644--- a/apps/rustcord/src/ui/sidebar.rs+++ b/apps/rustcord/src/ui/sidebar.rs@@ -466,7 +466,7 @@ impl RustCord {// No tooltips while a server or folder is being dragged.let dragging = self.rail_drag.is_some();- // Layout: folders from settings-proto if we have them, else READY order.+ // Layout: folders from settings-proto if RustCord has them, else READY order.let mut layout: Vec<(Option<u64>, Option<String>, Option<u32>, Vec<Id>)> = self.store.folders@@ -1308,7 +1308,7 @@ impl RustCord {let mut watch_stream: Option<(Id, Id)> = None;let mut join_voice: Option<Id> = None;let mut channel_menu: Option<(Id, egui::Pos2)> = None;- // Names for people in voice we haven't seen yet (op 8).+ // Names for people in voice RustCord hasn't seen yet (op 8).let unknown = self.store.unknown_voice_members(gid);if !unknown.is_empty() {for chunk in unknown.chunks(100) {@@ -1444,7 +1444,7 @@ impl RustCord {}let av = Rect::from_center_size(pos2(row.left() + 16.0, r.center().y), vec2(24.0, 24.0));paint_avatar(ui, av, user.as_ref().map(|u| u.avatar_or_default(48)), &uname);- // Green ring while they talk (in the call we are in).+ // Green ring while they talk (in the call you are in).if self.is_speaking(uid) {ui.painter().circle_stroke(av.center(), av.width() / 2.0 + 1.0, Stroke::new(2.0_f32, Color32::from_rgb(0x23, 0xa5, 0x5a)));}diff --git a/apps/rustcord/src/ui/soundboard.rs b/apps/rustcord/src/ui/soundboard.rsindex 3351f13..e7c7422 100644--- a/apps/rustcord/src/ui/soundboard.rs+++ b/apps/rustcord/src/ui/soundboard.rs@@ -59,7 +59,7 @@ pub struct Soundboard {pub requested: bool,/// Downloads to play when they land: URL → volume.pub pending: HashMap<String, f32>,- /// The last sound we sent, so its echo from the gateway doesn't play twice.+ /// The last sound you sent, so its echo from the gateway doesn't play twice.last_sent: Option<(Id, Instant)>,volume_open: bool,}@@ -115,7 +115,7 @@ impl RustCord {list.retain(|s| s.id != id);}}- // Someone (maybe us) played a sound in a call.+ // Someone (maybe you) played a sound in a call."VOICE_CHANNEL_EFFECT_SEND" => {let Some(sound) = Id::from_value(&d["sound_id"]) else { return };let Some(channel) = Id::from_value(&d["channel_id"]) else { return };diff --git a/apps/rustcord/src/ui/typing_fx.rs b/apps/rustcord/src/ui/typing_fx.rsindex f8e4888..54d5d34 100644--- a/apps/rustcord/src/ui/typing_fx.rs+++ b/apps/rustcord/src/ui/typing_fx.rs@@ -214,7 +214,7 @@ impl Fx<'_> {/// ranges (first, count) that aren't text (the gaps emoji pictures go in).////// The letters go out as a copy of the galley (a text shape), not a mesh- /// of our own: a glyph's texture coordinates are font-atlas pixels, and+ /// of RustCord's own: a glyph's texture coordinates are font-atlas pixels, and/// egui turns them into 0–1 only when it draws the frame, with the atlas/// size *then*. A mesh made here had to use the size at this moment, and/// when later text in the same frame grew the atlas (lots of new lettersdiff --git a/apps/rustcord/src/ui/voice_menu.rs b/apps/rustcord/src/ui/voice_menu.rsindex fb1e7ac..8c8af11 100644--- a/apps/rustcord/src/ui/voice_menu.rs+++ b/apps/rustcord/src/ui/voice_menu.rs@@ -369,7 +369,7 @@ impl RustCord {.and_then(|c| self.store.channels.get(&c)).and_then(|c| c.guild_id).is_some_and(|g| self.store.has_perm(g, permissions::CREATE_INSTANT_INVITE));- // Someone in voice: what we may do to them.+ // Someone in voice: what you may do to them.let me = self.store.me_id();let (user_ctx, mod_perms) = match kind {VoiceMenuKind::User(uid) => {diff --git a/apps/rustcord/src/ui/voice_notice.rs b/apps/rustcord/src/ui/voice_notice.rsindex 2dae61e..6706c65 100644--- a/apps/rustcord/src/ui/voice_notice.rs+++ b/apps/rustcord/src/ui/voice_notice.rs@@ -33,7 +33,7 @@ pub fn load(config: Option<&Path>) -> Option<LastCall> {serde_json::from_str(&text).ok()}-/// Remember the call we're in (`None`: none, the file goes).+/// Remember the call you're in (`None`: none, the file goes).fn save(config: Option<&Path>, call: Option<LastCall>) {let Some(file) = path(config) else { return };match call {@@ -52,7 +52,7 @@ fn save(config: Option<&Path>, call: Option<LastCall>) {}impl RustCord {- /// Keep `last-call.json` in step with the call we're in. Once a call+ /// Keep `last-call.json` in step with the call you're in. Once a call/// starts, the last session's notice has done its job.pub fn last_call_tick(&mut self) {if self.demo {@@ -72,7 +72,7 @@ impl RustCord {}/// The channel to offer, if the notice should show: it was this account's- /// call, the channel still exists for us, and we're not in a call.+ /// call, the channel still exists for you, and you're not in a call.fn last_call_channel(&self) -> Option<Id> {let call = self.last_call?;let mine = self.store.me_id().is_some_and(|me| me.0 == call.user);diff --git a/apps/rustcord/src/video.rs b/apps/rustcord/src/video.rsindex 6495e72..51dcbcd 100644--- a/apps/rustcord/src/video.rs+++ b/apps/rustcord/src/video.rs@@ -327,7 +327,7 @@ pub fn install(ctx: &egui::Context) {/// itself: any image whose URI ends in ".gif" or has ".gif#" in it gets/// "#<frame>" added and goes to egui_extras' GIF loader, which decodes the/// whole file on the UI thread, keeps every frame at full size, and wakes the-/// window at each GIF's own pace. Our frame URI of a GIF file with no query+/// window at each GIF's own pace. RustCord's frame URI of a GIF file with no query/// ("x.gif#vframe=12") looked like that: egui then decoded the whole GIF once/// per frame *number* (hundreds of MB for a few GIFs, a stall each time) and/// redrew ~100 times a second. So a clip's key never looks like a GIF to@@ -348,7 +348,7 @@ pub fn clip_key(url: &str) -> std::borrow::Cow<'_, str> {key.push(if path.contains('?') { '&' } else { '?' });}if let Some(f) = fragment {- // (Fragments are ours, never sent: anything will do there.)+ // (Fragments are RustCord's, never sent: anything will do there.)key.push('#');key.push_str(&f.replace(".gif#", ".gif~#"));if f.ends_with(".gif") {@@ -698,7 +698,7 @@ pub fn mp4_frames_ctl(Err(_) => sample.ConvertToContiguousBuffer().map_err(e)?,};let mut rgba = vec![0u8; aw * ah * 4];- // BGRX row `y` (top-down) → our RGBA row.+ // BGRX row `y` (top-down) → RustCord's RGBA row.let mut put_row = |y: usize, src: &[u8]| {for x in 0..aw.min(src.len() / 4) {let (s, d) = (x * 4, (y * aw + x) * 4);diff --git a/apps/rustcord/src/voice_call.rs b/apps/rustcord/src/voice_call.rsindex 2a2f0ae..307e699 100644--- a/apps/rustcord/src/voice_call.rs+++ b/apps/rustcord/src/voice_call.rs@@ -1,5 +1,5 @@//! Voice channels: joining (op 4), collecting the two halves of the voice-//! credentials (our own VOICE_STATE_UPDATE's session and VOICE_SERVER_UPDATE's+//! credentials (your own VOICE_STATE_UPDATE's session and VOICE_SERVER_UPDATE's//! token / endpoint), running the call through the `voice` crate, the//! "Voice Connected" panel above the user panel (with its connection stats),//! and the Voice & Video preferences. The call view is in `ui/call.rs`.@@ -28,12 +28,12 @@ pub const HANG_UP: &str = "\u{E778}";pub const WAVEFORM: &str = "\u{F61F}";pub const LOCK: &str = "\u{E72E}";-/// Joining: how long Discord gets to give us a working call.+/// Joining: how long Discord gets to give you a working call.const JOIN_TIMEOUT: Duration = Duration::from_secs(20);/// Waits before each automatic rejoin after a call dropped (like Discord's client).const REJOIN_BACKOFF: [Duration; 5] =[Duration::from_secs(1), Duration::from_secs(2), Duration::from_secs(4), Duration::from_secs(8), Duration::from_secs(15)];-/// How long a rejoin waits for Discord to confirm we left before joining anyway.+/// How long a rejoin waits for Discord to confirm you left before joining anyway.const LEAVE_WAIT: Duration = Duration::from_secs(3);/// A call that stayed up this long starts its next drop from the first attempt again.const STABLE_AFTER: Duration = Duration::from_secs(30);@@ -47,7 +47,7 @@ fn next_gen() -> u64 {}/// An automatic rejoin in progress: leave (op 4 with no channel), wait for Discord to-/// confirm (it ignores a join for a channel it thinks we're in), then join again.+/// confirm (it ignores a join for a channel it thinks you're in), then join again.pub struct Rejoin {/// When to send the leave.pub due: Instant,@@ -68,12 +68,12 @@ pub struct VoiceSession {pub channel: Id,/// Generation of the running call (see `next_gen`).pub gen: u64,- /// When we last asked to join (op 4), for the join timeout.+ /// When RustCord last asked to join (op 4), for the join timeout.pub joined_at: Instant,/// Rejoins since the call last stayed up for `STABLE_AFTER`.pub attempt: usize,pub rejoin: Option<Rejoin>,- /// A leave we sent ourselves (rejoin): its "left the channel" update isn't the end.+ /// A leave RustCord sent itself (rejoin): its "left the channel" update isn't the end.pub leave_pending: bool,/// When the current connection came up (the call timer keeps `connected_at`).pub up_since: Option<Instant>,@@ -95,7 +95,7 @@ pub struct VoiceSession {/// Where connecting stands (`VoiceEvent::Progress`), shown while not connected.pub phase: &'static str,/// The main gateway session this call was joined under. A READY for a *new* session- /// takes the voice session with it (rejoin); the READY of the session we joined+ /// takes the voice session with it (rejoin); the READY of the session RustCord joined/// under (joining right after connecting) does not.pub gateway_session: Option<String>,/// The outgoing bitrate last handed to the call (`voice_bitrate`).@@ -456,7 +456,7 @@ impl RustCord {}}- /// CALL_CREATE / CALL_UPDATE / CALL_DELETE: a call in one of our DMs.+ /// CALL_CREATE / CALL_UPDATE / CALL_DELETE: a call in one of your DMs.pub fn call_dispatch(&mut self, name: &str, d: &Value) {let Some(channel) = Id::from_value(&d["channel_id"]) else { return };if name == "CALL_DELETE" {@@ -476,7 +476,7 @@ impl RustCord {}/// The DM header's video call button: the call, with the camera on once- /// we're connected (Windows only, where RustCord has a camera).+ /// you're connected (Windows only, where RustCord has a camera).pub fn start_dm_video_call(&mut self, channel: Id) {let already_in = self.voice.as_ref().is_some_and(|v| v.channel == channel);self.start_dm_call(channel);@@ -492,7 +492,7 @@ impl RustCord {}}- /// The DM header's call button: start the call (Discord rings the others once our+ /// The DM header's call button: start the call (Discord rings the others once your/// side is up), or join / show the one that's running.pub fn start_dm_call(&mut self, channel: Id) {if self.voice.as_ref().is_some_and(|v| v.channel == channel) {@@ -515,7 +515,7 @@ impl RustCord {self.api("call-check", reqwest::Method::GET, format!("/channels/{channel}/call"), None);}- /// Someone is calling: the DM whose call rings us (not one we're in or dismissed).+ /// Someone is calling: the DM whose call rings you (not one you're in or dismissed).pub fn incoming_call(&self) -> Option<Id> {let me = self.store.me_id()?;let in_voice = self.voice.as_ref().map(|v| v.channel);@@ -543,17 +543,17 @@ impl RustCord {self.api("call-stop-ringing", reqwest::Method::POST, format!("/channels/{channel}/call/stop-ringing"), Some(serde_json::json!({})));}- /// A DM shows its call area: a call is running there, or we're in voice there.+ /// A DM shows its call area: a call is running there, or you're in voice there.pub fn dm_call_visible(&self, channel: Id) -> bool {self.calls.contains_key(&channel) || self.voice.as_ref().is_some_and(|v| v.channel == channel) || self.store.voice.get(&channel).is_some_and(|l| !l.is_empty())}- /// Rings the others once a call we started is connected, and keeps Discord's looping- /// call sounds going: "ringing" while someone calls us, "calling" while we wait alone+ /// Rings the others once a call you started is connected, and keeps Discord's looping+ /// call sounds going: "ringing" while someone calls you, "calling" while you wait alone/// in a call that still rings somebody. Cheap; runs every frame.pub fn calls_tick(&mut self) {// Developer aid for screenshots: RUSTCORD_DEV_CALL=incoming | outgoing pretends- // the open DM has a call that rings us / the other person. Nothing is sent.+ // the open DM has a call that rings you / the other person. Nothing is sent.if let (Ok(kind), Some(channel), Some(me)) = (crate::diagnostics::dev_var("RUSTCORD_DEV_CALL"), self.current_channel.filter(|_| self.current_guild.is_none()), self.store.me_id()) {if !self.calls.contains_key(&channel) && !self.dismissed_calls.contains(&channel) {let other = self.store.channels.get(&channel).and_then(|c| c.recipients.first().map(|u| u.id));@@ -642,7 +642,7 @@ impl RustCord {self.backend.send(Command::SpotifyPoll { share, user, fresh });}- /// Put the games' Rich Presence in our presence, unless "Share your detected+ /// Put the games' Rich Presence in your presence, unless "Share your detected/// activities with others" is off. Only sends when something changed.pub fn sync_rpc_presence(&mut self) {let share = self.discord_setting("show_current_game", true);@@ -738,7 +738,7 @@ impl RustCord {self.backend.send(Command::VoiceState { guild, channel: Some(channel), mute: self.self_mute, deaf: self.self_deaf });}- /// Show the call we're in: the voice channel's page (a DM call shows the DM).+ /// Show the call you're in: the voice channel's page (a DM call shows the DM).pub fn open_call_view(&mut self) {let Some((guild, channel)) = self.voice.as_ref().map(|v| (v.guild, v.channel)) else { return };self.current_guild = guild;@@ -785,7 +785,7 @@ impl RustCord {self.voice_mute_changed();}- /// VOICE_STATE_UPDATE / VOICE_SERVER_UPDATE: our side of the call.+ /// VOICE_STATE_UPDATE / VOICE_SERVER_UPDATE: your side of the call.pub fn voice_dispatch(&mut self, name: &str, d: &Value) {let me = self.store.me_id();let my_session = self.store.session_id.clone();@@ -808,7 +808,7 @@ impl RustCord {return;}match Id::from_value(&d["channel_id"]) {- // Our own leave during a rejoin: not the end of the call.+ // RustCord's own leave during a rejoin: not the end of the call.None if v.leave_pending => {v.leave_pending = false;if let Some(r) = v.rejoin.as_mut() {@@ -911,7 +911,7 @@ impl RustCord {}/// A new gateway session (READY after the old one expired) took the voice- /// session with it: rejoin the channel we were in.+ /// session with it: rejoin the channel you were in.pub fn voice_after_ready(&mut self) {// Already in voice from another device (or an earlier session)?if let Some(me) = self.store.me_id() {@@ -994,7 +994,7 @@ impl RustCord {pub fn on_voice_event(&mut self, gen: u64, e: voice::VoiceEvent) {let Some(v) = self.voice.as_mut() else { return };- // A call we already replaced or stopped.+ // A call RustCord already replaced or stopped.if gen != v.gen {return;}@@ -1027,7 +1027,7 @@ impl RustCord {log::info!("voice: {phase} (call {gen}, {} ms after the join)", v.joined_at.elapsed().as_millis());v.phase = phase;}- // Others coming and going, once we're in (the roster at join time is silent).+ // Others coming and going, once you're in (the roster at join time is silent).// (Discord stays quiet in channels of more than 25 people.)voice::VoiceEvent::UserJoined(_) | voice::VoiceEvent::UserLeft(_) if v.connected => {let people = self.store.voice.get(&v.channel).map_or(0, Vec::len);@@ -1039,7 +1039,7 @@ impl RustCord {voice::VoiceEvent::Disconnected { reason } => {log::info!("voice: disconnected ({reason:?}, call {gen})");match reason {- // We stopped it ourselves.+ // RustCord stopped it itself.None => {}// Discord ended this device's call on purpose (moved to another device,// disconnected by a moderator, channel deleted): don't fight it.@@ -1065,7 +1065,7 @@ impl RustCord {}}- /// Is `user` talking in the call we're in?+ /// Is `user` talking in the call you're in?pub fn is_speaking(&self, user: Id) -> bool {self.voice.as_ref().is_some_and(|v| v.speaking.contains(&user.0))}diff --git a/apps/setup/src/bin/pack.rs b/apps/setup/src/bin/pack.rsindex 4c1466f..adc15ed 100644--- a/apps/setup/src/bin/pack.rs+++ b/apps/setup/src/bin/pack.rs@@ -6,7 +6,7 @@use std::io::Write;fn main() {- let dir = std::env::current_exe().ok().and_then(|p| p.parent().map(|d| d.to_path_buf())).expect("where am I?");+ let dir = std::env::current_exe().ok().and_then(|p| p.parent().map(|d| d.to_path_buf())).expect("can't find the packer's folder");for name in ["rustcord.exe", "rustcord-uninstall.exe"] {let source = dir.join(name);let bytes = std::fs::read(&source).unwrap_or_else(|e| panic!("can't read {}: {e}", source.display()));diff --git a/crates/discord/src/fingerprint.rs b/crates/discord/src/fingerprint.rsindex f37c971..2959526 100644--- a/crates/discord/src/fingerprint.rs+++ b/crates/discord/src/fingerprint.rs@@ -237,7 +237,7 @@ mod tests {// The header is the same object, base64.let decoded: serde_json::Value = serde_json::from_slice(&STANDARD.decode(super_properties()).unwrap()).unwrap();assert_eq!(decoded, p);- // Integrity fields are the web client's to send, not ours to make up.+ // Integrity fields are the web client's to send, not RustCord's to make up.for forged in ["has_client_mods", "launch_signature", "client_launch_id"] {assert!(p.get(forged).is_none(), "{forged}");}diff --git a/crates/discord/src/gateway.rs b/crates/discord/src/gateway.rsindex 7c1f24e..5527b9c 100644--- a/crates/discord/src/gateway.rs+++ b/crates/discord/src/gateway.rs@@ -10,7 +10,7 @@//! |---|---|---|//! | 0 | LAZY_USER_NOTES | READY has no `notes` (they are read per profile) |//! | 2, 3 | VERSIONED_READ_STATES, VERSIONED_USER_GUILD_SETTINGS | `read_state` and `user_guild_settings` are `{version, partial, entries}` |-//! | 4 | DEDUPE_USER_OBJECTS | everyone is listed once in READY's `users` and named by ID elsewhere; our own members are in `merged_members`; a server's details are under `properties` |+//! | 4 | DEDUPE_USER_OBJECTS | everyone is listed once in READY's `users` and named by ID elsewhere; your own members are in `merged_members`; a server's details are under `properties` |//! | 5 | PRIORITIZED_READY_PAYLOAD | presences, voice states and other members follow in READY_SUPPLEMENTAL |//! | 6 | MULTIPLE_GUILD_EXPERIMENT_POPULATIONS | (experiments aren't read) |//! | 7 | NON_CHANNEL_READ_STATES | `read_state` has entries that aren't channels (`read_state_type`) |@@ -147,7 +147,7 @@ pub fn presence_payload(status: &str, custom: Option<&crate::settings_proto::Cusjson!({ "status": status, "since": 0, "activities": activities, "afk": false })}-/// Op 3: change our presence on the live session.+/// Op 3: change your presence on the live session.pub fn presence_update(presence: Value) -> GatewayCommand {GatewayCommand::Send(json!({ "op": 3, "d": presence }))}@@ -236,7 +236,7 @@ fn identify(token: &str, presence: &Value, capabilities: Option<u64>) -> Value {}/// Is this READY in the form the capabilities ask for: everyone listed once,-/// and a list of our own members for each server?+/// and a list of your own members for each server?fn is_compact(ready: &Value) -> bool {let count = |key: &str| ready[key].as_array().map_or(0, Vec::len);ready["users"].is_array() && ready["guilds"].is_array() && count("guilds") == count("merged_members")@@ -612,7 +612,7 @@ where// Discord's reason says which check failed (as for 4004).log::info!("gateway: Discord closed the connection: {code} {reason}");if code == 4002 {- // Discord couldn't take something we sent: say what.+ // Discord couldn't take something RustCord sent: say what.log::warn!("gateway: last payloads sent before the 4002:");// (The payloads themselves stay out of the log file:// they can hold a custom status or a search.)diff --git a/crates/discord/src/http.rs b/crates/discord/src/http.rsindex ec2d819..18cf7ae 100644--- a/crates/discord/src/http.rs+++ b/crates/discord/src/http.rs@@ -1074,7 +1074,7 @@ impl Http {Ok(())}- /// Add (`add = true`) or remove our reaction.+ /// Add (`add = true`) or remove your reaction.pub async fn react(&self, channel: Id, message: Id, emoji: &ReactionEmoji, add: bool) -> Result<()> {let path = format!("/channels/{channel}/messages/{message}/reactions/{}/@me", emoji.api_path());let method = if add { Method::PUT } else { Method::DELETE };diff --git a/crates/discord/src/model.rs b/crates/discord/src/model.rsindex 2231cce..3a8433a 100644--- a/crates/discord/src/model.rs+++ b/crates/discord/src/model.rs@@ -1062,7 +1062,7 @@ pub struct Channel {pub is_message_request_timestamp: Option<String>,/// A message request Discord filed as spam.pub is_spam: bool,- /// Channel flags: threads 2 = pinned post; any 131072 = a channel we may+ /// Channel flags: threads 2 = pinned post; any 131072 = a channel you may/// not see, sent with its name blanked.#[serde(deserialize_with = "null_default")]pub flags: u32,diff --git a/crates/discord/src/settings_proto.rs b/crates/discord/src/settings_proto.rsindex b530b09..cf104d5 100644--- a/crates/discord/src/settings_proto.rs+++ b/crates/discord/src/settings_proto.rs@@ -71,7 +71,7 @@ pub struct UserSettings {/// "online" | "idle" | "dnd" | "invisible"pub status: String,pub custom_status: Option<CustomStatus>,- /// Raw field-11 body, so patches keep fields we don't understand.+ /// Raw field-11 body, so patches keep fields RustCord doesn't understand.status_wire: Vec<u8>,/// Nitro client theme: a custom gradient's colours ("#0016ff", …), in order.pub client_theme_colors: Vec<String>,@@ -1185,7 +1185,7 @@ pub struct Frecency {pub reaction_emoji: std::collections::BTreeMap<String, Uses>,/// Favourite emoji, in their order (the same keys).pub favorite_emoji: Vec<String>,- /// Raw field-2 body (`FavoriteGIFs`), so patches keep what we don't read.+ /// Raw field-2 body (`FavoriteGIFs`), so patches keep what RustCord doesn't read.gifs_wire: Vec<u8>,}@@ -1540,7 +1540,7 @@ mod frecency_tests {let mut gifs = Vec::new();message(1, &gif_entry("https://tenor.com/a", "https://media.tenor.com/a.mp4", 1), &mut gifs);message(1, &gif_entry("https://tenor.com/b", "https://media.tenor.com/b.mp4", 2), &mut gifs);- // hide_tooltip + a field we don't know: both must survive patches.+ // hide_tooltip + a field RustCord doesn't know: both must survive patches.gifs.extend_from_slice(&[2 << 3, 1]);message(9, b"future", &mut gifs);let mut stickers = Vec::new();@@ -1564,7 +1564,7 @@ mod frecency_tests {message(1, &version, &mut wire);message(2, &gifs, &mut wire);message(4, &stickers, &mut wire);- message(6, b"emoji frecency we never touch", &mut wire);+ message(6, b"emoji frecency RustCord never touches", &mut wire);(wire, gifs)}diff --git a/crates/rencord/src/lib.rs b/crates/rencord/src/lib.rsindex 2e2aca1..9b2977a 100644--- a/crates/rencord/src/lib.rs+++ b/crates/rencord/src/lib.rs@@ -92,7 +92,7 @@ pub trait Plugin: Send {DeleteAction::Remove}- /// We're about to send a typing indicator. Return `false` to suppress it.+ /// RustCord is about to send a typing indicator. Return `false` to suppress it.fn typing(&mut self, _cx: &Cx, _channel: Id) -> bool {true}diff --git a/crates/voice/src/crypto.rs b/crates/voice/src/crypto.rsindex ed556ef..ad72410 100644--- a/crates/voice/src/crypto.rs+++ b/crates/voice/src/crypto.rs@@ -67,7 +67,7 @@ pub(crate) struct Rtp {pub transport_sequence: Option<u16>,pub payload: Vec<u8>,}-/// Feedback for our video SSRC, returned only after the whole compound packet validates.+/// Feedback for RustCord's video SSRC, returned only after the whole compound packet validates.#[derive(Default)]pub(crate) struct Feedback {pub keyframe: bool,@@ -110,7 +110,7 @@ impl Encryption {pub fn seal_rtcp(&mut self, header: &[u8; 8], body: &[u8]) -> Result<Vec<u8>, &'static str> {self.seal_packet(header, body)}- /// Authenticate RTCP feedback before honoring a PLI for our video SSRC.+ /// Authenticate RTCP feedback before honoring a PLI for RustCord's video SSRC./// As with `seal_rtcp`, only the first eight bytes remain clear on the wire.#[cfg(test)]pub fn requests_keyframe(&self, packet: &[u8], video_ssrc: u32) -> bool {@@ -569,7 +569,7 @@ impl Dave {return Err("DAVE proposals exceed the signaling budget");}// DAVE initial group creation ignores proposals until the external sender- // and protocol context have established our local group.+ // and protocol context have established RustCord's local group.if self.session.group().is_none() {return Ok(None);}diff --git a/crates/voice/src/lib.rs b/crates/voice/src/lib.rsindex 9230a8f..e525bc7 100644--- a/crates/voice/src/lib.rs+++ b/crates/voice/src/lib.rs@@ -21,7 +21,7 @@//! let call = voice::VoiceHandle::connect(//! voice::VoiceConfig {//! user_id: 1,-//! session_id: "session_id from our VOICE_STATE_UPDATE".into(),+//! session_id: "session_id from your VOICE_STATE_UPDATE".into(),//! token: "token from VOICE_SERVER_UPDATE".into(),//! endpoint: "c-ams05-1a2b3c4d.discord.media:443".into(),//! server_id: 2, // guild_id, or the channel id for DM calls@@ -105,9 +105,9 @@ pub(crate) type Frame = [f32; 960];/// Voice credentials for one call, collected from the main gateway.#[derive(Clone)]pub struct VoiceConfig {- /// Our own user ID.+ /// Your own user ID.pub user_id: u64,- /// `session_id` of the main gateway's `VOICE_STATE_UPDATE` for our user.+ /// `session_id` of the main gateway's `VOICE_STATE_UPDATE` for your account.pub session_id: String,/// `token` of `VOICE_SERVER_UPDATE`.pub token: String,@@ -135,13 +135,13 @@ impl fmt::Debug for VoiceConfig {#[derive(Clone, Debug, PartialEq, Eq)]pub enum VoiceEvent {/// Joined and end-to-end encrypted (DAVE); audio flows. Sent once per connection. When- /// we are alone in the channel this comes as soon as the empty group is set up; audio+ /// you are alone in the channel this comes as soon as the empty group is set up; audio/// starts flowing when somebody joins.Connected,- /// Someone (including us) started or stopped producing audible sound.+ /// Someone (including you) started or stopped producing audible sound.Speaking { user_id: u64, speaking: bool },/// A user connected to the voice server (opcode 11), including those already present- /// when we join. Never our own ID.+ /// when you join. Never your own ID.UserJoined(u64),/// A previously announced user disconnected (opcode 13).UserLeft(u64),@@ -621,7 +621,7 @@ impl VoiceHandle {/// Credentials for one Go Live connection, from the main gateway:/// STREAM_CREATE (`rtc_server_id`, `rtc_channel_id`) + STREAM_SERVER_UPDATE (`token`,-/// `endpoint`), plus our own voice `session_id` (from our VOICE_STATE_UPDATE).+/// `endpoint`), plus your own voice `session_id` (from your VOICE_STATE_UPDATE).#[derive(Clone)]pub struct StreamConfig {pub user_id: u64,@@ -806,7 +806,7 @@ fn forward_stream(}}-/// Our running Go Live. Dropping it stops the share.+/// Your running Go Live. Dropping it stops the share.pub struct StreamHandle {inner: Arc<StreamInner>,}@@ -853,7 +853,7 @@ impl Drop for StreamHandle {}}-/// Someone's Go Live we watch. Dropping it stops watching.+/// Someone's Go Live you watch. Dropping it stops watching.pub struct WatchHandle {inner: Arc<WatchInner>,}diff --git a/crates/voice/src/ogg_opus.rs b/crates/voice/src/ogg_opus.rsindex 303e81a..7995e41 100644--- a/crates/voice/src/ogg_opus.rs+++ b/crates/voice/src/ogg_opus.rs@@ -5,11 +5,11 @@use opus2::{Channels, Decoder};-/// Longest sound we decode (Discord caps soundboard sounds at 5.2 s).+/// Longest sound RustCord decodes (Discord caps soundboard sounds at 5.2 s).const MAX_SECONDS: usize = 30;/// `(channels, interleaved 48 kHz f32 samples)`, or None if this isn't an-/// Ogg Opus file we can play (one or two channels).+/// Ogg Opus file RustCord can play (one or two channels).pub fn decode_ogg_opus(bytes: &[u8]) -> Option<(u16, Vec<f32>)> {let packets = ogg_packets(bytes)?;let mut it = packets.into_iter();diff --git a/crates/voice/src/screen/camera_windows.rs b/crates/voice/src/screen/camera_windows.rsindex 01d43dc..9b8deb0 100644--- a/crates/voice/src/screen/camera_windows.rs+++ b/crates/voice/src/screen/camera_windows.rs@@ -35,7 +35,7 @@ pub(crate) struct Device {struct Runtime;impl Runtime {fn open() -> Result<Self, &'static str> {- // SAFETY: Balanced in Drop on the same thread; every caller is a thread of our own.+ // SAFETY: Balanced in Drop on the same thread; every caller is a thread RustCord owns.unsafe {CoInitializeEx(None, COINIT_MULTITHREADED).ok()@@ -129,7 +129,7 @@ fn on_thread<T: Send + 'static>(name: &str,work: impl FnOnce() -> Result<T, &'static str> + Send + 'static,) -> Result<T, &'static str> {- // A thread of our own has its own COM apartment whatever the caller's thread uses.+ // A thread RustCord owns has its own COM apartment whatever the caller's thread uses.std::thread::Builder::new().name(name.into()).spawn(work)@@ -190,7 +190,7 @@ unsafe fn open(id: u64, want: (u32, u32)) -> Result<(Reader, u32, u32), &'staticlet mut attributes = None;MFCreateAttributes(&mut attributes, 1).map_err(|_| OPEN_FAILED)?;let attributes = attributes.ok_or(OPEN_FAILED)?;- // Colour conversion (and MJPEG decoding) to the BGRA we ask for below.+ // Colour conversion (and MJPEG decoding) to the BGRA RustCord asks for below.attributes.SetUINT32(&MF_SOURCE_READER_ENABLE_ADVANCED_VIDEO_PROCESSING, 1).map_err(|_| OPEN_FAILED)?;diff --git a/crates/voice/src/stream.rs b/crates/voice/src/stream.rsindex 4691247..7345d8d 100644--- a/crates/voice/src/stream.rs+++ b/crates/voice/src/stream.rs@@ -10,7 +10,7 @@// connector and DAVE group helper; larger UDP socket buffers; statistics for the app.// Signaling order, pacing, RTX/NACK, PLI, receiver and transport-wide feedback, sink wants// and A/V sync follow Serein.-//! One Go Live connection (sending our screen or watching someone's) on its own voice+//! One Go Live connection (sending your screen or watching someone's) on its own voice//! gateway, sharing the call's DAVE identity. Discord's stream signaling is unofficial.use crate::{PlaybackFrame,@@ -44,7 +44,7 @@ use tokio::{use tokio_tungstenite::tungstenite::Message;use zeroize::Zeroizing;-/// Go Live credentials: STREAM_CREATE's RTC server, STREAM_SERVER_UPDATE's token and our+/// Go Live credentials: STREAM_CREATE's RTC server, STREAM_SERVER_UPDATE's token and your/// call session. The session ID and token are zeroized when dropped.pub(crate) struct StreamCredentials {pub user: u64,@@ -62,7 +62,7 @@ pub(crate) enum StreamStatus {Securing,/// Joined and secured, but nobody else is in the stream yet.WaitingForPeer,- /// Media flows: our first keyframe went out, or we subscribed as a viewer.+ /// Media flows: RustCord's first keyframe went out, or it subscribed as a viewer.Ready,Ping(u32),}@@ -186,7 +186,7 @@ fn h264_selected(data: &Value) -> bool {.is_some_and(|codec| codec.eq_ignore_ascii_case("H264"))}-/// Route authenticated video by our advertised receive payload assignments; RTX restores+/// Route authenticated video by RustCord's advertised receive payload assignments; RTX restores/// the original SSRC and sequence (RFC 4588).pub(crate) fn stream_video_packet(receivers: &mut Receivers,@@ -370,7 +370,7 @@ fn invalidate_stream(video: &mut Option<crate::screen::Video>, audio: &mut Optio}}-/// Send our screen (`video`) or watch a stream (`sink`, `audio`) until stopped or failed.+/// Send your screen (`video`) or watch a stream (`sink`, `audio`) until stopped or failed.////// `credentials.server` is the stream RTC server ID. Discord has not documented the/// stream MLS group mapping; the `rtc_server_id - 1` mapping is implementation evidence only.@@ -385,7 +385,7 @@ pub(crate) async fn run_stream(url: String,allow_loopback: bool,) -> Result<(), &'static str> {- // Statistics: what we receive (watching) or send (streaming).+ // Statistics: what RustCord receives (watching) or sends (streaming).let stats = sink.as_ref().map(|sink| sink.stats.clone())diff --git a/crates/voice/src/stream_tests.rs b/crates/voice/src/stream_tests.rsindex 11a297a..ba8ba23 100644--- a/crates/voice/src/stream_tests.rs+++ b/crates/voice/src/stream_tests.rs@@ -286,7 +286,7 @@ async fn exchange() {};view_udp.send_to(&probe, view_addr).await.unwrap();// Sender-only sessions must keep receiving authenticated RTCP feedback after- // discovery. An unrelated media SSRC must not force our encoder's keyframe.+ // discovery. An unrelated media SSRC must not force a keyframe from RustCord's encoder.assert!(ready.load(Ordering::Acquire));keyframe.store(false, Ordering::Release);let mut feedback = Encryption::new(&[7; 32]);diff --git a/crates/voice/src/transport.rs b/crates/voice/src/transport.rsindex e77c171..c71b2ca 100644--- a/crates/voice/src/transport.rs+++ b/crates/voice/src/transport.rs@@ -236,7 +236,7 @@ fn resume(credentials: &Credentials, seq_ack: i64) -> Value {fn heartbeat(nonce: u64, seq_ack: i64) -> Value {json!({"op":3,"d":{"t":nonce,"seq_ack":seq_ack}})}-/// Opcode 1 Select Protocol with our discovered external address.+/// Opcode 1 Select Protocol with RustCord's discovered external address./// RustCord: the camera's H.264 beside Opus (send only; the payload types match Go Live's).fn call_codecs() -> Value {json!([@@ -319,7 +319,7 @@ fn invalidate_camera(video: &mut crate::screen::Video) {while video.frames.try_recv().is_ok() {}}-/// Viewers' reports about our camera: loss and bandwidth steer the bitrate, missing+/// Viewers' reports about your camera: loss and bandwidth steer the bitrate, missing/// packets are resent, and a lost picture asks the encoder for a keyframe.fn camera_feedback(feedback: crate::crypto::Feedback,@@ -498,14 +498,14 @@ pub(crate) fn id(data: &Value, key: &str) -> Result<u64, &'static str> {pub(crate) fn transition(data: &Value) -> Result<u16, &'static str> {u16::try_from(number(data, "transition_id")?).map_err(|_| "Invalid voice transition")}-/// The 74-byte IP discovery request (type 1, length 70, our SSRC, zeroed address/port).+/// The 74-byte IP discovery request (type 1, length 70, RustCord's SSRC, zeroed address/port).pub(crate) fn discovery_request(ssrc: u32) -> [u8; 74] {let mut probe = [0; 74];probe[..4].copy_from_slice(&[0, 1, 0, 70]);probe[4..8].copy_from_slice(&ssrc.to_be_bytes());probe}-/// Parse the IP discovery response: our external address and port as the server sees them.+/// Parse the IP discovery response: RustCord's external address and port as the server sees them.pub(crate) fn discovery(packet: &[u8], ssrc: u32) -> Result<(IpAddr, u16), &'static str> {if packet.len() != 74 || packet[..4] != [0, 2, 0, 70] || packet[4..8] != ssrc.to_be_bytes() {return Err("Invalid voice UDP discovery reply");diff --git a/crates/voice/src/transport_tests.rs b/crates/voice/src/transport_tests.rsindex d6a31ac..4d01822 100644--- a/crates/voice/src/transport_tests.rs+++ b/crates/voice/src/transport_tests.rs@@ -425,7 +425,7 @@ async fn local_voice_exchange(guild: bool) {assert_eq!(seen.contains(&Status::UserJoined(4)), guild);assert!(!seen.contains(&Status::UserJoined(1)),- "never announce ourselves"+ "never announce your own ID");assert!(seen.iter()@@ -502,7 +502,7 @@ async fn local_voice_peer_disconnect_enters_waiting_without_timeout() {// Wait until the client has reached Ready.ready_rx.await.unwrap();- // Bob departs (leaves the DM call). We are now the sole member.+ // Bob departs (leaves the DM call). You are now the sole member.text(&mut ws, json!({"op":13,"d":{"user_id":"2"}})).await;// Wait until client transitions to WaitingForPeer.@@ -865,7 +865,7 @@ async fn a_peers_camera_is_decrypted_decoded_and_published() {server.abort();}-/// RustCord: our camera, end to end. The client is handed a camera source (encoded H.264+/// RustCord: your camera, end to end. The client is handed a camera source (encoded H.264/// pictures), announces it (opcode 12 with the SSRCs the server assigned at Ready) and/// sends it; "bob" on the loopback server reassembles the RTP, decrypts it with DAVE and/// gets the keyframe back.diff --git a/crates/voice/src/video_decode_windows.rs b/crates/voice/src/video_decode_windows.rsindex 428a204..ce4da97 100644--- a/crates/voice/src/video_decode_windows.rs+++ b/crates/voice/src/video_decode_windows.rs@@ -106,7 +106,7 @@ pub(crate) struct Decoder {transform: IMFTransform,staging: Option<Staging>,gpu: Option<Gpu>,- /// Our reusable output sample when the transform does not allocate its own.+ /// RustCord's reusable output sample when the transform does not allocate its own.own: Option<(IMFSample, u32)>,format: Option<Format>,provides_samples: bool,@@ -191,7 +191,7 @@ impl Decoder {self.hardware_output}- /// Whether GPU pictures are read through our staging texture (not Media Foundation's+ /// Whether GPU pictures are read through RustCord's staging texture (not Media Foundation's/// slower fallback read-back).#[cfg(test)]pub fn staged(&self) -> bool {@@ -301,7 +301,7 @@ impl Decoder {}}- /// Our output sample, reused while the transform asks for the same buffer size.+ /// RustCord's output sample, reused while the transform asks for the same buffer size.fn output_sample(&mut self) -> Result<IMFSample, &'static str> {// SAFETY: Stream info and allocations on the owning thread; sizes are bounded.unsafe {@@ -344,8 +344,8 @@ impl Decoder {Some(self.output_sample()?)};// SAFETY: The output struct is fully initialized. A sample the transform- // provides is owned by us after the call and released at the end of this- // iteration; our own sample is only borrowed by the call.+ // provides is owned by RustCord after the call and released at the end of this+ // iteration; RustCord's own sample is only borrowed by the call.let sample = unsafe {let mut output = MFT_OUTPUT_DATA_BUFFER {dwStreamID: 0,diff --git a/crates/voice/src/video_encode_windows.rs b/crates/voice/src/video_encode_windows.rsindex beb99c1..4f1e3c0 100644--- a/crates/voice/src/video_encode_windows.rs+++ b/crates/voice/src/video_encode_windows.rs@@ -304,8 +304,8 @@ impl Encoder {}fn take_output(&self) -> Result<(Vec<u8>, bool), &'static str> {- // SAFETY: The output struct is fully initialized. We take ownership of either the- // transform-provided sample or our cloned sample before releasing its native fields.+ // SAFETY: The output struct is fully initialized. RustCord takes ownership of either the+ // transform-provided sample or RustCord's cloned sample before releasing its native fields.unsafe {let own = if self.provides_samples {None