-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish image and contact code when joining community #4011
base: develop
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (8)
|
0a47d06
to
c7dec38
Compare
c7dec38
to
acbea6f
Compare
acbea6f
to
cddfe16
Compare
@@ -791,6 +791,11 @@ func (m *Messenger) joinCommunity(ctx context.Context, communityID types.HexByte | |||
if err = m.subscribeToCommunityShard(community.ID(), community.Shard()); err != nil { | |||
return nil, err | |||
} | |||
|
|||
if err = m.publishContactCodeInCommunity(community); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contact code is already triggered few lines below:
status-go/protocol/messenger_communities.go
Line 818 in cddfe16
if err = m.PublishIdentityImage(); err != nil { |
🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was already addressed in this PR: #2745
publishIdentityImage
is now triggered each time user joins a new community, this is to ensure other community members got updated with user details immediately
We publish a contact code as soon as we join a community, so that other users in the community can retrieve it