[Fix] Local & Remote message handling is now propper

This commit is contained in:
Alex Emmet 2026-04-08 09:19:45 +02:00
commit 3c11800af5
6 changed files with 176 additions and 102 deletions

View file

@ -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()

View file

@ -1,7 +1,7 @@
use std::time::{SystemTime, UNIX_EPOCH};
use iota_util::file_util::{has_file, load_file, used_dir_space};
use base64::{Engine as _, engine::general_purpose};
use iota_util::file_util::{has_file, load_file, used_dir_space};
use json::{JsonValue, object};
use rand::Rng;
use rand::rngs::OsRng;