[Fix] Local & Remote message handling is now propper
This commit is contained in:
parent
d79a625e32
commit
3c11800af5
6 changed files with 176 additions and 102 deletions
|
|
@ -45,7 +45,9 @@ pub async fn load_from_tu(username: &str) -> Result<(), ()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn add_user(user: UserProfile) { USERS.lock().unwrap().push(user); }
|
||||
pub fn add_user(user: UserProfile) {
|
||||
USERS.lock().unwrap().push(user);
|
||||
}
|
||||
pub fn get_user_by_username(username: &str) -> Option<UserProfile> {
|
||||
USERS
|
||||
.lock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue