possibly more reliable connect

This commit is contained in:
Adhiraj
2020-08-25 18:33:43 +05:30
parent aac613094c
commit 59df353746
3 changed files with 9 additions and 4 deletions

View File

@@ -117,6 +117,9 @@ WAConnectionTest('Misc', (conn) => {
}
})
it('should load a single message', async () => {
const loaded = await conn.loadMessage (testJid, '5A3FF17786EBCD0EF350')
assert.equal (loaded.key.id, '5A3FF17786EBCD0EF350')
const {messages} = await conn.loadMessages (testJid, 10)
for (var message of messages) {
const loaded = await conn.loadMessage (testJid, message.key.id)