Skip to main content

Module auto_accept

Module auto_accept 

Source
Expand description

Acceptance of incoming invites on behalf of local users.

Arrival sites queue an invite from inside the room’s state lock; the service worker performs the joins once that lock is gone.

Re-exportsΒ§

use std::time::Duration; πŸ”’
use futures::FutureExt; πŸ”’
use futures::StreamExt; πŸ”’
use ruma::OwnedRoomId; πŸ”’
use ruma::OwnedUserId; πŸ”’
use ruma::RoomId; πŸ”’
use ruma::UserId; πŸ”’
use ruma::events::invite_permission_config::InvitePermission; πŸ”’
use tokio::time::sleep; πŸ”’
use tuwunel_core::debug; πŸ”’
use tuwunel_core::debug; πŸ”’
use tuwunel_core::debug_warn; πŸ”’
use tuwunel_core::implement; πŸ”’
use tuwunel_core::utils::future::ReadyBoolExt; πŸ”’
use tuwunel_core::utils::future::and5; πŸ”’
use tuwunel_core::utils::result::LogErr; πŸ”’
use tuwunel_core::utils::stream::automatic_width; πŸ”’
use super::Join; πŸ”’
use super::Service; πŸ”’

StructsΒ§

Pending πŸ”’
One invite waiting for the worker to act on it.

ConstantsΒ§

ATTEMPTS πŸ”’
Join attempts made before the invite is left for its user to answer.