Use String to store UserId for uiaa request

Fixes compilation error after ruma upgrade
This commit is contained in:
Moritz Bitsch 2021-12-18 19:05:18 +01:00
parent 0725b69abb
commit 720a54b3bb

View file

@ -21,7 +21,7 @@ use super::abstraction::Tree;
pub struct Uiaa {
pub(super) userdevicesessionid_uiaainfo: Arc<dyn Tree>, // User-interactive authentication
pub(super) userdevicesessionid_uiaarequest:
RwLock<BTreeMap<(UserId, String, String), CanonicalJsonValue>>,
RwLock<BTreeMap<(String, String, String), CanonicalJsonValue>>,
}
impl Uiaa {
@ -155,7 +155,7 @@ impl Uiaa {
.unwrap()
.insert(
(
user_id.to_owned(),
user_id.to_string(),
device_id.to_string(),
session.to_string(),
),
@ -176,7 +176,7 @@ impl Uiaa {
.read()
.unwrap()
.get(&(
user_id.to_owned(),
user_id.to_string(),
device_id.to_string(),
session.to_string(),
))