refreshReceivedInvitations
Refreshes the list of received invitations.
This method fetches the latest received invitations from the server and updates the receivedInvitations state flow with the new data. It ensures that the list of received invitations remains up-to-date with the current state on Rainbow.
Behavior:
On successful execution, the receivedInvitations property is automatically updated with the refreshed list.
This method is automatically called after the user authentication and whenever a new invitation is received.
If the operation fails, the returned RainbowResult contains error details explaining the issue.
Usage Notes:
Use this method when you need to manually trigger a refresh of received invitations.
Return
A RainbowResult containing the refreshed list of Invitation objects on success. In case of failure, it contains error details.