added room invite button in rooms that should have it

This commit is contained in:
2025-12-31 15:44:45 +01:00
parent 6bd1921806
commit fb4e827b12
4 changed files with 101 additions and 18 deletions

View File

@@ -140,7 +140,12 @@ async fn send_request(
.bind(receiver_id)
.execute(&db)
.await
.map_err(|_| (StatusCode::CONFLICT, "Request already exists".into()))?;
.map_err(|_| {
(
StatusCode::CONFLICT,
"You have already send a friend request to this user".into(),
)
})?;
Ok((
StatusCode::CREATED,