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