mirror of
https://github.com/status-im/status-go.git
synced 2025-01-24 13:41:24 +00:00
Fetch details of user when adding a contact (#3271)
This commit is contained in:
parent
cbb016ac00
commit
7123b22c52
@ -1033,5 +1033,20 @@ func (m *Messenger) BuildContact(contactID string) (*Contact, error) {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
// Schedule sync filter to fetch information about the contact
|
||||
publicKey, err := contact.PublicKey()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
filter, err := m.transport.JoinPrivate(publicKey)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
_, err = m.scheduleSyncFilters([]*transport.Filter{filter})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return contact, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user