oxen-io / session-desktop

Session Desktop - Onion routing based messenger
https://getsession.org
GNU General Public License v3.0
1.53k stars 195 forks source link

How can I get nickname and profilename from sender? #2951

Closed RubenGarcia closed 12 months ago

RubenGarcia commented 12 months ago

I have the messages from Data.getLastMessagesByConversation and I can retrieve the sender of each message. How would I transform this sender into a display name from an async function?

RubenGarcia commented 12 months ago

const displayName = getConversationController().getContactProfileNameOrShortenedPubKey( sender );