fix(3ds): Use RelationshipTypeIncomplete for new relationships
Some checks failed
Build and Publish Docker Image / Build and Publish Docker Image (amd64) (push) Has been cancelled
Build and Publish Docker Image / Build and Publish Docker Image (arm64) (push) Has been cancelled

This was previously not needed since NewFriendRelationship by default
would give the friendship status a value of 0, but now it uses the
Invalid value by default (2), which breaks the previous code.
This commit is contained in:
Daniel López Guimaraes 2026-07-20 13:12:32 +01:00
parent bcd8996b08
commit 4ea3bbcf21
No known key found for this signature in database
GPG Key ID: 6AC74DE3DEF050E0

View File

@ -51,6 +51,7 @@ func SaveFriendship(senderPID uint32, recipientPID uint32) (friends_3ds_types.Fr
}
friendRelationship.PID = types.NewPID(uint64(recipientPID))
friendRelationship.RelationshipType = friends_3ds_constants.RelationshipTypeIncomplete
return friendRelationship, nil
}