You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using #webpack-exodus branch, trying some code where I can react, reply, quote, etc, however edit does not work.
Is it supposed to be functional?
Trying to debug I got as far as:
let canEditText = window.Store.MsgActionChecks.canEditText(msg);
let canEditCaption = window.Store.MsgActionChecks.canEditCaption(msg);
These two variables resolve to false while trying to edit a message sent a few seconds before the edit instruction is triggered.
Expected behavior
Edit a user message is supposed to work, right?
Steps to Reproduce the Bug or Issue
Install #webpack-exodus
Try to edit a message
Fails without error
Relevant Code
if (msg.hasQuotedMsg) {
const quotedMsg = await msg.getQuotedMessage();
quotedMsg.edit(`Test`).then((res)=>{
console.log(res)
}).catch(errro => {
console.error('Erro ao deletar')
})
msg.react('✏️')
}
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
Linux / Ubuntu / Docker
Additional context
No response
The text was updated successfully, but these errors were encountered:
Not sure if you are actually trying to edit your own message or a quoted message from someone else, which you can not edit.
Since canEdit* returns false, it seems the message just cannot be edited by you. The underlying methods are taken directly from WhatsApp web and, unless the wrong message is passed, should work as intended.
Not sure if you are actually trying to edit your own message or a quoted message from someone else, which you can not edit.
Since canEdit* returns false, it seems the message just cannot be edited by you. The underlying methods are taken directly from WhatsApp web and, unless the wrong message is passed, should work as intended.
that's the code i've got from the documentation, I am of course trying to edit my own messages as well as quoted own messages, does edit work for you in any way @themazim ?
I checked the editing on the new version. Everything works as before.
As before, the message can only be edited when send from the web.
That is, you write through the lib and these messages can be edited. Messages written from the phone can be edited only on the phone. It has always worked like this
Is there an existing issue for this?
Describe the bug
I'm currently using #webpack-exodus branch, trying some code where I can react, reply, quote, etc, however edit does not work.
Is it supposed to be functional?
Trying to debug I got as far as:
These two variables resolve to
false
while trying to edit a message sent a few seconds before the edit instruction is triggered.Expected behavior
Edit a user message is supposed to work, right?
Steps to Reproduce the Bug or Issue
Relevant Code
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
Linux / Ubuntu / Docker
Additional context
No response
The text was updated successfully, but these errors were encountered: