mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Add Params::set_cmd and use SystemMessage constants
This commit is contained in:
committed by
Floris Bruynooghe
parent
dced1932b3
commit
cfa69cf35a
@@ -257,7 +257,7 @@ fn send_handshake_msg(
|
||||
msg.type_0 = Viewtype::Text;
|
||||
msg.text = Some(format!("Secure-Join: {}", step));
|
||||
msg.hidden = true;
|
||||
msg.param.set_int(Param::Cmd, 7);
|
||||
msg.param.set_cmd(SystemMessage::SecurejoinMessage);
|
||||
if step.is_empty() {
|
||||
msg.param.remove(Param::Arg);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user