Update documentation for reject_stale_invites function

This commit is contained in:
froge 2023-06-20 02:43:53 +10:00
parent bf4380c4f9
commit d6c5a420c3
Signed by: froge
GPG key ID: A825E09930271BFA

View file

@ -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() {