fix: typeerror on some group create

This commit is contained in:
Adhiraj Singh
2021-12-07 22:09:18 +05:30
parent 1e386480e4
commit 49e7ad4b25
3 changed files with 4 additions and 6 deletions

View File

@@ -274,9 +274,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
result.messageStubType = WAMessageStubType.GROUP_CREATE
result.messageStubParameters = [metadata.subject]
result.key = {
participant: jidNormalizedUser(metadata.owner)
}
result.key = { participant: metadata.owner }
ev.emit('chats.upsert', [{
id: metadata.id,