feat: Chat request implementation #14
2 changed files with 4 additions and 3 deletions
|
@ -25,7 +25,8 @@ use crate::{errors::ServerResult, websocket::errors::WsError};
|
|||
|
||||
/// Extension trait for the `out_chat_requests` table.
|
||||
pub trait OutChatRequestsExt {
|
||||
/// Returns true if the `user` have a sended chat request to the `recipient`
|
||||
/// Returns the outgoing chat request if the `user` have a sent chat request
|
||||
/// to the `recipient`
|
||||
async fn have_chat_request_to(
|
||||
&self,
|
||||
requester: &UserModel,
|
||||
|
|
|
@ -28,7 +28,7 @@ use crate::{errors::ServerResult, websocket::errors::WsError};
|
|||
/// Extension trait for the `DatabaseConnection` to work with the whitelist
|
||||
/// table
|
||||
pub trait UsersStatusExt {
|
||||
/// Returns ture if the `whitelister` are whitelisted the
|
||||
/// Returns true if the `whitelister` has whitelisted the
|
||||
/// `target_public_key`
|
||||
async fn is_whitelisted(
|
||||
&self,
|
||||
|
@ -36,7 +36,7 @@ pub trait UsersStatusExt {
|
|||
target_public_key: &PublicKey,
|
||||
) -> ServerResult<bool>;
|
||||
|
||||
/// Returns ture if the `blacklister` are blacklisted the
|
||||
/// Returns true if the `blacklister` has blacklisted the
|
||||
/// `target_public_key`
|
||||
async fn is_blacklisted(
|
||||
&self,
|
||||
|
|
Loading…
Reference in a new issue