chore: remove name redundancy TransformToProtobuf -> ToProtobuf

This commit is contained in:
Patryk Osmaczko 2022-08-11 16:11:28 +02:00 committed by osmaczko
parent 78d4d86f68
commit 9cf61d205f
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ func NewSocialLinks(links []*protobuf.SocialLink) *SocialLinks {
return &res
}
func (s *SocialLinks) TransformToProtobuf() []*protobuf.SocialLink {
func (s *SocialLinks) ToProtobuf() []*protobuf.SocialLink {
res := []*protobuf.SocialLink{}
for _, link := range *s {
res = append(res, &protobuf.SocialLink{Text: link.Text, Url: link.URL})

View File

@ -1055,7 +1055,7 @@ func (m *Messenger) createChatIdentity(context chatContext) (*protobuf.ChatIdent
EnsName: "", // TODO add ENS name handling to dedicate PR
DisplayName: displayName,
Description: bio,
SocialLinks: socialLinks.TransformToProtobuf(),
SocialLinks: socialLinks.ToProtobuf(),
}
err = m.attachIdentityImagesToChatIdentity(context, ci)