Fix subscription

This commit is contained in:
2021-06-06 19:29:43 +02:00
parent 31092c4a24
commit 9227cdef9a

View File

@ -63,7 +63,8 @@ pub async fn push(room_id: &str, event: Event) -> Result<(), Error> {
unsafe {
let mut accounts = ACCOUNTS.as_ref().unwrap().lock().await;
if let Some(acc) = accounts.get_mut(account.as_str()) {
rooms.append(acc);
let mut acc = acc.clone();
rooms.append(&mut acc);
}
}
}