mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
add 'waiting for being added to the group' only for group-joins (#2797)
* add 'waiting for being added to the group' only for group-joins, not for setup-contact * add a comment why the message is not added on setup-contact
This commit is contained in:
@@ -533,9 +533,18 @@ pub(crate) async fn handle_securejoin_handshake(
|
|||||||
Ok(HandshakeMessage::Done)
|
Ok(HandshakeMessage::Done)
|
||||||
}
|
}
|
||||||
Some(_stage) => {
|
Some(_stage) => {
|
||||||
let msg = stock_str::secure_join_replies(context, contact_id).await;
|
if join_vg {
|
||||||
chat::add_info_msg(context, bobstate.chat_id(context).await?, msg, time())
|
// the message reads "Alice replied, waiting for being added to the group…";
|
||||||
|
// show it only on secure-join and not on setup-contact therefore.
|
||||||
|
let msg = stock_str::secure_join_replies(context, contact_id).await;
|
||||||
|
chat::add_info_msg(
|
||||||
|
context,
|
||||||
|
bobstate.chat_id(context).await?,
|
||||||
|
msg,
|
||||||
|
time(),
|
||||||
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
}
|
||||||
joiner_progress!(context, bobstate.invite().contact_id(), 400);
|
joiner_progress!(context, bobstate.invite().contact_id(), 400);
|
||||||
Ok(HandshakeMessage::Done)
|
Ok(HandshakeMessage::Done)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user