Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

fix: extraInfo and avatar are not reflecting on UpdatePeer and AddPeer #601

Merged
merged 3 commits into from
Jan 31, 2022

Conversation

hariprasath2603
Copy link
Contributor

UpdatePeer (Method) - Has option to update all the fields except avatar and extraInfo.

AddPeer(Method) - we can add peers with all peer fields except avatar and extraInfo.

This commit resolved both the issue, So we can add / update peers avatar and extraInfo.

Everywhere we have type declaration and usage for avatar and extraInfo for peer. But not set on redis while creating peers.
Before pinfo null check routines returning error sid and uid are dereferenced.

Moved the dereference after error handling for null check.
On UpdatePeer event and AddPeer  methods there is missing implementation for updating or adding avatar and extrInfo of a peer.
Copy link
Collaborator

@adwpc adwpc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@adwpc adwpc merged commit 9c9f527 into ionorg:master Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants