group create response fix

This commit is contained in:
Adhiraj
2020-07-14 21:40:49 +05:30
parent 6a69cbf8d5
commit 970f333bb4
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ WAClientTest('Groups', (client) => {
it('should create a group', async () => {
const response = await client.groupCreate('Cool Test Group', [testJid])
gid = response.gid
console.log('created group: ' + gid)
console.log('created group: ' + JSON.stringify(response))
})
it('should retreive group invite code', async () => {
const code = await client.groupInviteCode(gid)

View File

@@ -38,7 +38,7 @@ export type WAMessageContent = proto.IMessage
export interface WAGroupCreateResponse {
status: number
gid?: string
participants?: { [key: string]: any }
participants?: [{ [key: string]: any }]
}
export interface WAGroupMetadata {
id: string