From c517fea6fdf736fb80a9cd73682c432b7a43360a Mon Sep 17 00:00:00 2001 From: Awiteb Date: Wed, 17 Jul 2024 21:15:05 +0300 Subject: [PATCH] chore: Add new websocket errors Signed-off-by: Awiteb --- crates/oxidetalis/src/websocket/errors.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/oxidetalis/src/websocket/errors.rs b/crates/oxidetalis/src/websocket/errors.rs index c24798c..036801d 100644 --- a/crates/oxidetalis/src/websocket/errors.rs +++ b/crates/oxidetalis/src/websocket/errors.rs @@ -37,4 +37,6 @@ ws_errors! { CannotSendChatRequestToSelf = "You cannot send a chat request to yourself", CannotRespondToOwnChatRequest = "You cannot respond to your own chat request", NoChatRequestFromRecipient = "You do not have a chat request from the recipient", + RecipientBlacklist = "You cannot send a chat request because you are on the recipient's blacklist.", + AlreadyInRecipientWhitelist = "You are already on the recipient's whitelist and can chat with them." }