fix: Create a group unblocked for bot even if 1:1 chat is blocked (#5514)

This commit is contained in:
iequidoo
2024-05-30 10:27:28 -03:00
committed by iequidoo
parent 6f3729a00f
commit 62fde21d9a
3 changed files with 30 additions and 2 deletions

View File

@@ -175,7 +175,12 @@ impl TestContextManager {
));
let qr = get_securejoin_qr(&scanned.ctx, None).await.unwrap();
join_securejoin(&scanner.ctx, &qr).await.unwrap();
self.exec_securejoin_qr(scanner, scanned, &qr).await;
}
/// Executes SecureJoin initiated by `scanner` scanning `qr` generated by `scanned`.
pub async fn exec_securejoin_qr(&self, scanner: &TestContext, scanned: &TestContext, qr: &str) {
join_securejoin(&scanner.ctx, qr).await.unwrap();
loop {
if let Some(sent) = scanner.pop_sent_msg_opt(Duration::ZERO).await {