feat: federated room directory
This commit is contained in:
parent
120b6f4b95
commit
720cc0cffc
5 changed files with 43 additions and 66 deletions
|
@ -27,10 +27,8 @@ pub fn increment(old: Option<&[u8]>) -> Option<Vec<u8>> {
|
|||
|
||||
pub fn generate_keypair(old: Option<&[u8]>) -> Option<Vec<u8>> {
|
||||
Some(
|
||||
/*
|
||||
old.map(|s| s.to_vec())
|
||||
.unwrap_or_else(|| */
|
||||
ruma_signatures::Ed25519KeyPair::generate().unwrap(),
|
||||
.unwrap_or_else(|| ruma_signatures::Ed25519KeyPair::generate().unwrap()),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue