Skip to content

Commit

Permalink
Handle friend error 1049
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 committed Aug 23, 2024
1 parent 9a3d0c1 commit a2b70f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ private void internalProcess() {

if (modifyResponse.code() == 1028) {
logger.error("Friend list full, unable to add " + entry.getValue() + " (" + entry.getKey() + ") as a friend");
} else if (modifyResponse.code() == 1011) {
} else if (modifyResponse.code() == 1011 || modifyResponse.code() == 1049) {
// The friend wasn't added successfully so remove them from the list
// This seems to happen in some cases, I assume from the user blocking us or having account restrictions
toAdd.remove(entry.getKey());
Expand Down

0 comments on commit a2b70f8

Please sign in to comment.