feat: add error code for handled friend requests and improve error handling in friend operations

(cherry picked from commit 5d451fa3f8)
This commit is contained in:
withchao
2026-01-22 15:04:37 +08:00
parent 5f81f632f8
commit 452e3b2bbb
3 changed files with 14 additions and 14 deletions
+1
View File
@@ -68,6 +68,7 @@ const (
BlockedByPeer = 1302 // Blocked by the peer
NotPeersFriend = 1303 // Not the peer's friend
RelationshipAlreadyError = 1304 // Already in a friend relationship
FriendRequestHandled = 1305 // Friend request has already been handled
// Message error codes.
MessageHasReadDisable = 1401