textileio / go-textile

[DEPRECATED] Textile is a set of tools and infrastructure for building composable apps and services on the IPFS network
https://textile.io
MIT License
357 stars 43 forks source link

Mobile API provides contact.name in the contact.avatar field #827

Closed andrewxhill closed 5 years ago

andrewxhill commented 5 years ago
[ { peers: [],
    threads: [ '\n412D3KooWFrrmGJcQhE5h6VUvUEXdLH7gPKdWh2q4CEM62rFGcFpr\u00120P7kneNPCLSFFWeiDj69VvjqfZqC1ru8gU5tXm5bFneY4hxpM\u001a\u0002v0"\u0013/textile/cafe/1.0.0*\u00050.2.82!https://us-west-beta.textile.cafe' ],
    address: '12D3KooWP73RCjULsFS8omprxMSp3NdMEiGyf4ZnWVsUHJ3PDDyk',
    name: 'P4hf9cJv7MUckSSkKySBoScB555LTiQ9XjurD71FSU95Gzov',
    avatar: 'Trackpad' } ]

This contact has an empty avatar, so perhaps that's what leads to it.

The contact value comes from

Textile.threads.peers

which hits threadPeers

sanderpick commented 5 years ago

Looks like an unmarshal mistake. Moved to -> https://github.com/textileio/ios-textile/issues/52

sanderpick commented 5 years ago

also, https://github.com/textileio/android-textile/issues/34