Open Rahmican opened 3 months ago
Hi @Rahmican,
For the participants you could already get that information by doing the following:
const messages = wcp.parseString(chatLog);
const participants = new Set(messages.map(m => m.author));
console.log(participants); // Set(5) { 'Person1', 'Person2', 'Person3', 'Person4', 'Person5'}
For the group name, seems like we can extract it from the first message, but I have to do some testing
If i decide to add these properties however, it would make sense to change the returned structure like this:
{
groupName: 'My Group Name',
participants: [
'Person1',
'Person2',
],
messages: [
{
date: 2024-08-14T19:00:10.000Z,
author: null,
message: '‎Messages and calls are end-to-end encrypted. No one outside of this chat, not even WhatsApp, can read or listen to them.'
},
{
date: 2024-08-14T19:00:10.000Z,
author: 'Person1',
message: '‎Hi all bla bla bla'
}
// ...
]
}
Hi @Pustur ,
Thank you for your quick response and support.
Hi Loris, what's your decide on this? :)
@Rahmican This issue is blocked by #258, once that is resolved I can go ahead an release a new major version that changes the output as shown above.
The problem is that I am currently very busy with my job and other stuff, so I don't know when I'll be able to get to these issues.
Hi,
We want to use this library but we also need the following information.
Could you make the relevant changes? :) Regards, Rahmican.