INNER CODE UNIT · Rust
add_thread_memberships
aannoo/hcom · src/db/mod.rs:975
pub fn add_thread_memberships(
&self,
thread: &str,
sender: Option<&str>,
recipients: &[String],
) {
// Delegates to db::subscriptions; events_sub: kv ownership lives there.
subscriptions::add_thread_memberships(self, thread, sender, recipients);
}
/// Send a system notification message (simplified inline version).
/// Parses @mentions, computes scope, inserts message event.
pub fn send_system_message(&self, sender_name: &str, message: &str) -> Result<Vec<String>> {
// Delegates to db::subscriptions; events_sub: kv ownership lives there.
subscriptions::send_system_message(self, sender_name, message)
}
/// Like `send_system_message` but lets the caller specify `sender_kind`