Format, Status, User Stati & Endpoints
This commit is contained in:
parent
8ae9b94d8b
commit
97f0a76c6c
11 changed files with 963 additions and 396 deletions
|
|
@ -1,11 +1,7 @@
|
|||
use crate::data::communication::{CommunicationType, CommunicationValue, DataTypes};
|
||||
use crate::sql::iota_omikron_tracker::{
|
||||
track_iota_omikron, untrack_by_omikron as untrack_iota_by_omikron, untrack_iota,
|
||||
};
|
||||
use crate::sql::sql::get_omikron_by_id;
|
||||
use crate::sql::user_online_tracker::{
|
||||
track_user_omikron, untrack_by_omikron as untrack_user_by_omikron, untrack_user,
|
||||
};
|
||||
use crate::sql::connection_status::ConnectionType;
|
||||
use crate::sql::sql::{self, get_by_user_id, get_by_username, get_iota_by_id, get_omikron_by_id};
|
||||
use crate::sql::user_online_tracker::{self};
|
||||
use crate::util::crypto_helper::encrypt;
|
||||
use crate::util::logger::PrintType;
|
||||
use crate::{get_private_key, log_out};
|
||||
|
|
@ -18,6 +14,7 @@ use futures::stream::SplitStream;
|
|||
use hyper::upgrade::Upgraded;
|
||||
use hyper_util::rt::TokioIo;
|
||||
use json::JsonValue;
|
||||
use json::number::Number;
|
||||
use rand::Rng;
|
||||
use rand::distributions::Alphanumeric;
|
||||
use std::sync::Arc;
|
||||
|
|
@ -73,7 +70,7 @@ impl OmikronConnection {
|
|||
}
|
||||
sender.send(message_text).await.unwrap();
|
||||
}
|
||||
pub async fn get_user_id(&self) -> i64 {
|
||||
pub async fn get_omikron_id(&self) -> i64 {
|
||||
*self.omikron_id.read().await
|
||||
}
|
||||
pub async fn is_identified(&self) -> bool {
|
||||
|
|
@ -102,137 +99,168 @@ impl OmikronConnection {
|
|||
return;
|
||||
}
|
||||
|
||||
// Handle identification
|
||||
if !*self.identified.read().await && cv.is_type(CommunicationType::identification) {
|
||||
let omikron_id = cv
|
||||
.get_data(DataTypes::omikron)
|
||||
.unwrap_or(&JsonValue::Null)
|
||||
.as_i64()
|
||||
.unwrap_or(0);
|
||||
match get_omikron_by_id(omikron_id).await {
|
||||
Ok((public_key, _)) => {
|
||||
// Generate Challenge, encrypt it and send it to the omikron
|
||||
*self.omikron_id.write().await = omikron_id;
|
||||
// If not yet identified
|
||||
if !self.is_identified().await {
|
||||
// handle identification
|
||||
if !*self.identified.read().await && cv.is_type(CommunicationType::identification) {
|
||||
let omikron_id = cv
|
||||
.get_data(DataTypes::omikron)
|
||||
.unwrap_or(&JsonValue::Null)
|
||||
.as_i64()
|
||||
.unwrap_or(0);
|
||||
match get_omikron_by_id(omikron_id).await {
|
||||
Ok((public_key, _)) => {
|
||||
// Generate Challenge, encrypt it and send it to the omikron
|
||||
*self.omikron_id.write().await = omikron_id;
|
||||
|
||||
let challenge_str: String = rand::thread_rng()
|
||||
.sample_iter(&Alphanumeric)
|
||||
.take(32)
|
||||
.map(char::from)
|
||||
.collect();
|
||||
let challenge_str: String = rand::thread_rng()
|
||||
.sample_iter(&Alphanumeric)
|
||||
.take(32)
|
||||
.map(char::from)
|
||||
.collect();
|
||||
|
||||
*self.challenge.write().await = challenge_str.clone();
|
||||
*self.challenge.write().await = challenge_str.clone();
|
||||
|
||||
let user_public_key_bytes = match STANDARD.decode(&public_key) {
|
||||
Ok(bytes) => bytes,
|
||||
Err(_) => {
|
||||
self.send_error_response(
|
||||
&cv.get_id(),
|
||||
CommunicationType::error_invalid_omikron_id,
|
||||
)
|
||||
.await;
|
||||
return;
|
||||
}
|
||||
};
|
||||
*self.pub_key.write().await = Some(user_public_key_bytes.clone());
|
||||
|
||||
let omikron_pub_key: PublicKey =
|
||||
match PublicKey::from_bytes(&user_public_key_bytes) {
|
||||
Some(key) => key,
|
||||
None => {
|
||||
let user_public_key_bytes = match STANDARD.decode(&public_key) {
|
||||
Ok(bytes) => bytes,
|
||||
Err(_) => {
|
||||
self.send_error_response(
|
||||
&cv.get_id(),
|
||||
CommunicationType::error_invalid_public_key,
|
||||
CommunicationType::error_invalid_omikron_id,
|
||||
)
|
||||
.await;
|
||||
return;
|
||||
}
|
||||
};
|
||||
*self.pub_key.write().await = Some(user_public_key_bytes.clone());
|
||||
|
||||
let encrypted_challenge =
|
||||
encrypt(get_private_key(), omikron_pub_key, &challenge_str)
|
||||
.unwrap_or("".to_string());
|
||||
let omikron_pub_key: PublicKey =
|
||||
match PublicKey::from_bytes(&user_public_key_bytes) {
|
||||
Some(key) => key,
|
||||
_ => {
|
||||
self.send_error_response(
|
||||
&cv.get_id(),
|
||||
CommunicationType::error_invalid_public_key,
|
||||
)
|
||||
.await;
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
let response = CommunicationValue::new(CommunicationType::challenge)
|
||||
.add_data_str(
|
||||
DataTypes::public_key,
|
||||
STANDARD.encode(get_public_key().as_bytes()),
|
||||
let encrypted_challenge =
|
||||
encrypt(get_private_key(), omikron_pub_key, &challenge_str)
|
||||
.unwrap_or("".to_string());
|
||||
|
||||
let response = CommunicationValue::new(CommunicationType::challenge)
|
||||
.add_data_str(
|
||||
DataTypes::public_key,
|
||||
STANDARD.encode(get_public_key().as_bytes()),
|
||||
)
|
||||
.add_data_str(DataTypes::challenge, encrypted_challenge)
|
||||
.with_id(cv.get_id());
|
||||
|
||||
self.send_message(&response).await;
|
||||
*self.identified.write().await = true;
|
||||
return;
|
||||
}
|
||||
Err(e) => {
|
||||
self.send_message(
|
||||
&CommunicationValue::new(CommunicationType::error_not_authenticated)
|
||||
.with_id(cv.get_id())
|
||||
.add_data_str(DataTypes::error_type, e.to_string()),
|
||||
)
|
||||
.add_data_str(DataTypes::challenge, encrypted_challenge)
|
||||
.with_id(cv.get_id());
|
||||
.await;
|
||||
|
||||
self.send_message(&response).await;
|
||||
*self.identified.write().await = true;
|
||||
return;
|
||||
return;
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
self.send_message(
|
||||
&CommunicationValue::new(CommunicationType::error_not_authenticated)
|
||||
.with_id(cv.get_id())
|
||||
.add_data_str(DataTypes::error_type, e.to_string()),
|
||||
}
|
||||
|
||||
// Handle challenge response
|
||||
if *self.identified.read().await
|
||||
&& !*self.challenged.read().await
|
||||
&& cv.is_type(CommunicationType::challenge_response)
|
||||
{
|
||||
let client_response = cv
|
||||
.get_data(DataTypes::challenge)
|
||||
.unwrap_or(&JsonValue::Null)
|
||||
.as_str()
|
||||
.unwrap_or("");
|
||||
let expected_challenge = self.challenge.read().await.clone();
|
||||
|
||||
if client_response == expected_challenge {
|
||||
*self.challenged.write().await = true;
|
||||
|
||||
let response =
|
||||
CommunicationValue::new(CommunicationType::identification_response)
|
||||
.with_id(cv.get_id());
|
||||
let _ = sql::set_omikron_active(self.get_omikron_id().await, true);
|
||||
self.send_message(&response).await;
|
||||
} else {
|
||||
self.send_error_response(
|
||||
&cv.get_id(),
|
||||
CommunicationType::error_invalid_challenge,
|
||||
)
|
||||
.await;
|
||||
|
||||
return;
|
||||
self.close().await;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Handle challenge response
|
||||
if *self.identified.read().await
|
||||
&& !*self.challenged.read().await
|
||||
&& cv.is_type(CommunicationType::challenge_response)
|
||||
{
|
||||
let client_response = cv
|
||||
.get_data(DataTypes::challenge)
|
||||
.unwrap_or(&JsonValue::Null)
|
||||
.as_str()
|
||||
.unwrap_or("");
|
||||
let expected_challenge = self.challenge.read().await.clone();
|
||||
|
||||
if client_response == expected_challenge {
|
||||
*self.challenged.write().await = true;
|
||||
|
||||
let response = CommunicationValue::new(CommunicationType::identification_response)
|
||||
.with_id(cv.get_id());
|
||||
|
||||
self.send_message(&response).await;
|
||||
} else {
|
||||
self.send_error_response(&cv.get_id(), CommunicationType::error_invalid_challenge)
|
||||
.await;
|
||||
self.close().await;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if !self.is_identified().await {
|
||||
// if not identified && not identifying
|
||||
self.send_error_response(&cv.get_id(), CommunicationType::error_not_authenticated)
|
||||
.await;
|
||||
self.close().await;
|
||||
return;
|
||||
}
|
||||
|
||||
let omikron_id = self.get_user_id().await;
|
||||
let omikron_id = self.get_omikron_id().await;
|
||||
if cv.is_type(CommunicationType::user_connected) {
|
||||
if let Some(user_id) = cv.get_data(DataTypes::user_id).and_then(|v| v.as_i64()) {
|
||||
track_user_omikron(user_id, omikron_id).await;
|
||||
user_online_tracker::track_user_status(user_id, ConnectionType::Online, omikron_id)
|
||||
.await;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if cv.is_type(CommunicationType::user_disconnected) {
|
||||
if let Some(user_id) = cv.get_data(DataTypes::user_id).and_then(|v| v.as_i64()) {
|
||||
untrack_user(user_id).await;
|
||||
if let Some(status) = user_online_tracker::get_user_status(user_id).await {
|
||||
user_online_tracker::track_user_status(
|
||||
user_id,
|
||||
ConnectionType::UserOffline,
|
||||
status.omikron_id,
|
||||
)
|
||||
.await;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
if cv.is_type(CommunicationType::iota_connected) {
|
||||
if let Some(iota_id) = cv.get_data(DataTypes::iota_id).and_then(|v| v.as_i64()) {
|
||||
track_iota_omikron(iota_id, omikron_id).await;
|
||||
user_online_tracker::track_iota_connection(iota_id, omikron_id).await;
|
||||
if let Ok(users) = sql::get_users_by_iota_id(iota_id).await {
|
||||
for user in users {
|
||||
user_online_tracker::track_user_status(
|
||||
user.0,
|
||||
ConnectionType::UserOffline,
|
||||
omikron_id,
|
||||
)
|
||||
.await;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
if cv.is_type(CommunicationType::iota_disconnected) {
|
||||
if let Some(iota_id) = cv.get_data(DataTypes::iota_id).and_then(|v| v.as_i64()) {
|
||||
untrack_iota(iota_id).await;
|
||||
let iota_offline =
|
||||
user_online_tracker::untrack_iota_connection(iota_id, omikron_id).await;
|
||||
if iota_offline {
|
||||
if let Ok(users) = sql::get_users_by_iota_id(iota_id).await {
|
||||
let user_ids: Vec<i64> = users.iter().map(|u| u.0).collect();
|
||||
user_online_tracker::untrack_many_users(&user_ids).await;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -242,7 +270,12 @@ impl OmikronConnection {
|
|||
{
|
||||
for user_id_json in user_ids {
|
||||
if let Some(user_id) = user_id_json.as_i64() {
|
||||
track_user_omikron(user_id, omikron_id).await;
|
||||
user_online_tracker::track_user_status(
|
||||
user_id,
|
||||
ConnectionType::Online,
|
||||
omikron_id,
|
||||
)
|
||||
.await;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -251,12 +284,286 @@ impl OmikronConnection {
|
|||
{
|
||||
for iota_id_json in iota_ids {
|
||||
if let Some(iota_id) = iota_id_json.as_i64() {
|
||||
track_iota_omikron(iota_id, omikron_id).await;
|
||||
user_online_tracker::track_iota_connection(iota_id, omikron_id).await;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
if cv.is_type(CommunicationType::get_user_data) {
|
||||
if let Some(user_id) = cv.get_data(DataTypes::user_id).cloned() {
|
||||
if let Some(user_id) = user_id.as_i64() {
|
||||
if let Ok((
|
||||
id,
|
||||
iota_id,
|
||||
username,
|
||||
display,
|
||||
status,
|
||||
about,
|
||||
avatar,
|
||||
sub_level,
|
||||
sub_end,
|
||||
public_key,
|
||||
_,
|
||||
_,
|
||||
)) = get_by_user_id(user_id).await
|
||||
{
|
||||
let mut response =
|
||||
CommunicationValue::new(CommunicationType::get_user_data)
|
||||
.add_data_str(DataTypes::username, username)
|
||||
.add_data_str(DataTypes::public_key, public_key)
|
||||
.add_data(DataTypes::user_id, JsonValue::Number(Number::from(id)))
|
||||
.add_data(
|
||||
DataTypes::iota_id,
|
||||
JsonValue::Number(Number::from(iota_id)),
|
||||
)
|
||||
.add_data_str(DataTypes::display, display)
|
||||
.add_data_str(DataTypes::status, status)
|
||||
.add_data_str(DataTypes::about, about)
|
||||
.add_data_str(DataTypes::avatar, avatar)
|
||||
.add_data(
|
||||
DataTypes::sub_level,
|
||||
JsonValue::Number(Number::from(sub_level)),
|
||||
)
|
||||
.add_data(
|
||||
DataTypes::sub_end,
|
||||
JsonValue::Number(Number::from(sub_end)),
|
||||
);
|
||||
|
||||
let user_status = user_online_tracker::get_user_status(id).await;
|
||||
let iota_connections =
|
||||
user_online_tracker::get_iota_omikron_connections(iota_id)
|
||||
.await
|
||||
.unwrap_or_default();
|
||||
response = response.add_data(
|
||||
DataTypes::omikron_connections,
|
||||
JsonValue::Array(
|
||||
iota_connections
|
||||
.into_iter()
|
||||
.map(|id| JsonValue::Number(Number::from(id)))
|
||||
.collect(),
|
||||
),
|
||||
);
|
||||
|
||||
if let Some(user_status) = user_status {
|
||||
response = response.add_data(
|
||||
DataTypes::online_status,
|
||||
JsonValue::String(user_status.connection_type.to_string()),
|
||||
);
|
||||
response = response.add_data(
|
||||
DataTypes::omikron_id,
|
||||
JsonValue::Number(Number::from(user_status.omikron_id)),
|
||||
);
|
||||
} else {
|
||||
response = response.add_data(
|
||||
DataTypes::online_status,
|
||||
JsonValue::String(ConnectionType::IotaOffline.to_string()),
|
||||
);
|
||||
}
|
||||
|
||||
self.send_message(&response).await;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(username) = cv.get_data(DataTypes::username).cloned() {
|
||||
if let Some(username) = username.as_str() {
|
||||
if let Ok((
|
||||
id,
|
||||
iota_id,
|
||||
username,
|
||||
display,
|
||||
status,
|
||||
about,
|
||||
avatar,
|
||||
sub_level,
|
||||
sub_end,
|
||||
public_key,
|
||||
_,
|
||||
_,
|
||||
)) = get_by_username(username).await
|
||||
{
|
||||
let mut response =
|
||||
CommunicationValue::new(CommunicationType::get_user_data)
|
||||
.add_data_str(DataTypes::username, username)
|
||||
.add_data_str(DataTypes::public_key, public_key)
|
||||
.add_data(DataTypes::user_id, JsonValue::Number(Number::from(id)))
|
||||
.add_data(
|
||||
DataTypes::iota_id,
|
||||
JsonValue::Number(Number::from(iota_id)),
|
||||
)
|
||||
.add_data_str(DataTypes::display, display)
|
||||
.add_data_str(DataTypes::status, status)
|
||||
.add_data_str(DataTypes::about, about)
|
||||
.add_data_str(DataTypes::avatar, avatar)
|
||||
.add_data(
|
||||
DataTypes::sub_level,
|
||||
JsonValue::Number(Number::from(sub_level)),
|
||||
)
|
||||
.add_data(
|
||||
DataTypes::sub_end,
|
||||
JsonValue::Number(Number::from(sub_end)),
|
||||
);
|
||||
|
||||
let user_status = user_online_tracker::get_user_status(id).await;
|
||||
let iota_connections =
|
||||
user_online_tracker::get_iota_omikron_connections(iota_id)
|
||||
.await
|
||||
.unwrap_or_default();
|
||||
|
||||
if let Some(user_status) = user_status {
|
||||
response = response.add_data(
|
||||
DataTypes::online_status,
|
||||
JsonValue::String(user_status.connection_type.to_string()),
|
||||
);
|
||||
response = response.add_data(
|
||||
DataTypes::omikron_id,
|
||||
JsonValue::Number(Number::from(user_status.omikron_id)),
|
||||
);
|
||||
} else {
|
||||
response = response.add_data(
|
||||
DataTypes::online_status,
|
||||
JsonValue::String(ConnectionType::IotaOffline.to_string()),
|
||||
);
|
||||
}
|
||||
response = response.add_data(
|
||||
DataTypes::omikron_connections,
|
||||
JsonValue::Array(
|
||||
iota_connections
|
||||
.iter()
|
||||
.map(|&id| JsonValue::Number(Number::from(id)))
|
||||
.collect(),
|
||||
),
|
||||
);
|
||||
|
||||
self.send_message(&response).await;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
let response =
|
||||
CommunicationValue::new(CommunicationType::error_not_found).with_id(cv.get_id());
|
||||
self.send_message(&response).await;
|
||||
|
||||
return;
|
||||
}
|
||||
if cv.is_type(CommunicationType::get_iota_data) {
|
||||
if let Some(iota_id) = cv.get_data(DataTypes::iota_id).cloned() {
|
||||
if let Some(iota_id) = iota_id.as_i64() {
|
||||
if let Ok((iota_id, public_key)) = get_iota_by_id(iota_id).await {
|
||||
let mut response =
|
||||
CommunicationValue::new(CommunicationType::get_iota_data)
|
||||
.add_data_str(DataTypes::public_key, public_key)
|
||||
.add_data(
|
||||
DataTypes::iota_id,
|
||||
JsonValue::Number(Number::from(iota_id)),
|
||||
);
|
||||
|
||||
let iota_connections =
|
||||
user_online_tracker::get_iota_omikron_connections(iota_id)
|
||||
.await
|
||||
.unwrap_or_default();
|
||||
|
||||
response = response.add_data(
|
||||
DataTypes::omikron_connections,
|
||||
JsonValue::Array(
|
||||
iota_connections
|
||||
.iter()
|
||||
.map(|&id| JsonValue::Number(Number::from(id)))
|
||||
.collect(),
|
||||
),
|
||||
);
|
||||
self.send_message(&response).await;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(user_id) = cv.get_data(DataTypes::user_id).cloned() {
|
||||
if let Some(user_id) = user_id.as_i64() {
|
||||
if let Ok((_, iota_id, _, _, _, _, _, _, _, _, _, _)) =
|
||||
get_by_user_id(user_id).await
|
||||
{
|
||||
if let Ok((iota_id, public_key)) = get_iota_by_id(iota_id).await {
|
||||
let mut response =
|
||||
CommunicationValue::new(CommunicationType::get_iota_data)
|
||||
.add_data_str(DataTypes::public_key, public_key)
|
||||
.add_data(
|
||||
DataTypes::user_id,
|
||||
JsonValue::Number(Number::from(user_id)),
|
||||
)
|
||||
.add_data(
|
||||
DataTypes::iota_id,
|
||||
JsonValue::Number(Number::from(iota_id)),
|
||||
);
|
||||
|
||||
let iota_connections =
|
||||
user_online_tracker::get_iota_omikron_connections(iota_id)
|
||||
.await
|
||||
.unwrap_or_default();
|
||||
|
||||
response = response.add_data(
|
||||
DataTypes::omikron_connections,
|
||||
JsonValue::Array(
|
||||
iota_connections
|
||||
.iter()
|
||||
.map(|&id| JsonValue::Number(Number::from(id)))
|
||||
.collect(),
|
||||
),
|
||||
);
|
||||
|
||||
self.send_message(&response).await;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(username) = cv.get_data(DataTypes::username).cloned() {
|
||||
if let Some(username) = username.as_str() {
|
||||
if let Ok((user_id, iota_id, _, _, _, _, _, _, _, _, _, _)) =
|
||||
get_by_username(username).await
|
||||
{
|
||||
if let Ok((iota_id, public_key)) = get_iota_by_id(iota_id).await {
|
||||
let mut response =
|
||||
CommunicationValue::new(CommunicationType::get_iota_data)
|
||||
.add_data_str(DataTypes::public_key, public_key)
|
||||
.add_data(
|
||||
DataTypes::user_id,
|
||||
JsonValue::Number(Number::from(user_id)),
|
||||
)
|
||||
.add_data_str(DataTypes::username, username.to_string())
|
||||
.add_data(
|
||||
DataTypes::iota_id,
|
||||
JsonValue::Number(Number::from(iota_id)),
|
||||
);
|
||||
|
||||
let iota_connections =
|
||||
user_online_tracker::get_iota_omikron_connections(iota_id)
|
||||
.await
|
||||
.unwrap_or_default();
|
||||
|
||||
response = response.add_data(
|
||||
DataTypes::omikron_connections,
|
||||
JsonValue::Array(
|
||||
iota_connections
|
||||
.iter()
|
||||
.map(|&id| JsonValue::Number(Number::from(id)))
|
||||
.collect(),
|
||||
),
|
||||
);
|
||||
self.send_message(&response).await;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
let response =
|
||||
CommunicationValue::new(CommunicationType::error_not_found).with_id(cv.get_id());
|
||||
self.send_message(&response).await;
|
||||
|
||||
return;
|
||||
}
|
||||
if cv.is_type(CommunicationType::change_user_data) {}
|
||||
if cv.is_type(CommunicationType::change_iota_data) {}
|
||||
}
|
||||
|
||||
async fn send_error_response(&self, message_id: &Uuid, error_type: CommunicationType) {
|
||||
|
|
@ -265,14 +572,16 @@ impl OmikronConnection {
|
|||
}
|
||||
pub async fn close(&self) {
|
||||
let mut sender = self.sender.write().await;
|
||||
if self.is_identified().await {
|
||||
let _ = sql::set_omikron_active(self.get_omikron_id().await, false);
|
||||
}
|
||||
let _ = sender.close().await;
|
||||
}
|
||||
pub async fn handle_close(self: Arc<Self>) {
|
||||
if self.is_identified().await {
|
||||
let omikron_id = self.get_user_id().await;
|
||||
let omikron_id = self.get_omikron_id().await;
|
||||
if omikron_id != 0 {
|
||||
untrack_iota_by_omikron(omikron_id).await;
|
||||
untrack_user_by_omikron(omikron_id).await;
|
||||
user_online_tracker::untrack_omikron(omikron_id).await;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue