Address review

pull/612/head
sachaaaaa 6 years ago
parent 2c1375e42a
commit b7b2776340

@ -346,13 +346,18 @@
); );
const allMembers = await Promise.all( const allMembers = await Promise.all(
allPubKeys.map(async pubKey => ({ allPubKeys.map(async pubKey => {
const conv = ConversationController.get(pubKey);
let profileName = 'Anonymous';
if (conv) {
profileName = await conv.getProfileName();
}
return {
id: pubKey, id: pubKey,
authorPhoneNumber: pubKey, authorPhoneNumber: pubKey,
authorProfileName: await ConversationController.get( authorProfileName: profileName,
pubKey };
).getProfileName(), })
}))
); );
window.lokiPublicChatAPI.setListOfMembers(allMembers); window.lokiPublicChatAPI.setListOfMembers(allMembers);
}; };

Loading…
Cancel
Save