signal-golang / textsecure

TextSecure(signal) client package for Go
GNU General Public License v3.0
57 stars 26 forks source link

WIP: Refactor GetProfile() #62

Open Blackoverflow opened 1 year ago

Blackoverflow commented 1 year ago

I don't quite understand why GetProfile() makes two requests for the profile and decrypts just once. @nanu-c do you want to enlighten me?

I tried myself at a refactoring to remove duplicate code. My changes may be wrong, since I didn't understand the function.