mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
feat: Transfer the broadcast secret in an encrypted message rather than directly in the QR code
This commit is contained in:
@@ -1385,6 +1385,18 @@ impl Message {
|
||||
pub fn error(&self) -> Option<String> {
|
||||
self.error.clone()
|
||||
}
|
||||
|
||||
// TODO this function could be used a lot more
|
||||
/// If this is a secure-join message,
|
||||
/// returns the current step,
|
||||
/// which is put into the `Secure-Join` header.
|
||||
pub(crate) fn securejoin_step(&self) -> Option<&str> {
|
||||
if self.param.get_cmd() == SystemMessage::SecurejoinMessage {
|
||||
self.param.get(Param::Arg)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// State of the message.
|
||||
|
||||
Reference in New Issue
Block a user