move to create instead of fromObject
This commit is contained in:
@@ -26,7 +26,7 @@ describe('Connection Deadlock Test', () => {
|
||||
|
||||
// 2. Now, emit a regular message. Because the previous step should have
|
||||
// flushed the buffer, this message should be processed immediately.
|
||||
const regularMessage = proto.WebMessageInfo.fromObject({
|
||||
const regularMessage = proto.WebMessageInfo.create({
|
||||
key: { remoteJid: '1234567890@s.whatsapp.net', fromMe: false, id: 'REGULAR_MSG_1' },
|
||||
messageTimestamp: Date.now() / 1000,
|
||||
message: { conversation: 'Hello, world!' }
|
||||
|
||||
Reference in New Issue
Block a user