Nicer message deletion + catch profile picture update errors

This commit is contained in:
Adhiraj Singh
2020-12-18 12:35:24 +05:30
parent ae0f3be3d3
commit ccab24cdb2
4 changed files with 17 additions and 9 deletions

View File

@@ -51,6 +51,11 @@ WAConnectionTest('Groups', (conn) => {
it('should send a message on the group', async () => {
await sendAndRetreiveMessage(conn, 'Hello!', MessageType.text, {}, gid)
})
it('should delete a message on the group', async () => {
const message = await sendAndRetreiveMessage(conn, 'Hello!', MessageType.text, {}, gid)
await delay(1500)
await conn.deleteMessage(message.key)
})
it('should quote a message on the group', async () => {
const {messages} = await conn.loadMessages (gid, 100)
const quotableMessage = messages.find (m => m.message)