From d6c5a420c35b6d461136d97ecc5905f0a586e643 Mon Sep 17 00:00:00 2001 From: froge Date: Tue, 20 Jun 2023 02:43:53 +1000 Subject: [PATCH] Update documentation for reject_stale_invites function --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index eb52e76..5cd1b56 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -85,7 +85,10 @@ pub async fn delete_old_encryption_devices(client: &Client, config: &Config) -> Ok(()) } -/// Rejects invites that aren't valid anymore or have timed out. +/// Rejects invites that are waiting to be processed. +/// +/// The bot will reject invites to spaces and DMs, as well as invites to any rooms it wasn't +/// configured to explicitly join, while accepting invites to any rooms it was configured to join. pub async fn reject_stale_invites(client: &Client, config: &Config) { warn!("Rejecting stale invites"); for room in client.invited_rooms() {