Show users if room knows them
Also selects the current room in the rooms list
This commit is contained in:
parent
ccf6a59f39
commit
f34bf63be4
7 changed files with 104 additions and 27 deletions
|
|
@ -8,7 +8,7 @@ use crate::macros::id_alias;
|
|||
|
||||
// TODO Use base64 representation instead
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Deserialize, Serialize)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Deserialize, Serialize)]
|
||||
struct Id(#[serde(with = "hex")] [u8; 32]);
|
||||
|
||||
impl Id {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
macro_rules! id_alias {
|
||||
($name:ident) => {
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Deserialize, Serialize)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Deserialize, Serialize)]
|
||||
pub struct $name(Id);
|
||||
|
||||
impl $name {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue