refactor: move and update fixme / todo comments
This commit is contained in:
@@ -31,8 +31,7 @@ pub async fn req(
|
||||
|
||||
match &channel {
|
||||
Channel::Group { .. } => {
|
||||
// FIXME: use permissions here?
|
||||
// interesting if users could block new group invites
|
||||
// TODO: use permissions here? interesting if users could block new group invites
|
||||
let member = member_id.as_user(db).await?;
|
||||
if !user.is_friends_with(&member.id) {
|
||||
return Err(create_error!(NotFriends));
|
||||
|
||||
@@ -148,7 +148,7 @@ mod test {
|
||||
.await;
|
||||
|
||||
dbg!(response.into_string().await);
|
||||
// TODO: finish impl
|
||||
// FIXME: finish impl
|
||||
// assert_eq!(response.status(), Status::NotFound);
|
||||
}
|
||||
|
||||
@@ -185,6 +185,6 @@ mod test {
|
||||
.dispatch()
|
||||
.await;
|
||||
|
||||
// TODO: impl assert_eq!(response.status(), Status::Forbidden);
|
||||
// FIXME: impl assert_eq!(response.status(), Status::Forbidden);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user