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
Hello,
There are two ways to delete messages on mobile phones, "delete on everyone's device" and "delete on my device", as shown in the figure below.
There is a clear trigger event for 'delete on everyone's device', I just need to listen to the 'chat. msg.revoke' event, as shown in the following code. I can accurately listen to the 'delete on everyone's device' trigger on my phone, and then I can handle some things
However, there is no specific event here to monitor the 'delete on my device' action. I tried some events and eventually found that clicking 'delete on my device' on my phone triggers a message deletion event. So, I added an event in the 【wapi/listeners】 directory to listen for the 'delete on my device' action, as follows.
This can indeed detect the action of 'delete on my device', but there will be a serious issue. When I click on the logout disconnect link on my phone, it triggers many removal events for messages, but in reality, these messages are not deleted. It looks like the DOM is being re rendered due to the browser being closed, which leads to the accidental triggering of many removal events.
Is there a clear event that can point to 'delete on my device'? Or can you help me solve this problem? Not very grateful.
I have tried delaying execution, but it still triggers incorrectly in the end
The text was updated successfully, but these errors were encountered:
Environment
Description
Hello,
There are two ways to delete messages on mobile phones, "delete on everyone's device" and "delete on my device", as shown in the figure below.
There is a clear trigger event for 'delete on everyone's device', I just need to listen to the 'chat. msg.revoke' event, as shown in the following code. I can accurately listen to the 'delete on everyone's device' trigger on my phone, and then I can handle some things
However, there is no specific event here to monitor the 'delete on my device' action. I tried some events and eventually found that clicking 'delete on my device' on my phone triggers a message deletion event. So, I added an event in the 【wapi/listeners】 directory to listen for the 'delete on my device' action, as follows.
This can indeed detect the action of 'delete on my device', but there will be a serious issue. When I click on the logout disconnect link on my phone, it triggers many removal events for messages, but in reality, these messages are not deleted. It looks like the DOM is being re rendered due to the browser being closed, which leads to the accidental triggering of many removal events.
Is there a clear event that can point to 'delete on my device'? Or can you help me solve this problem? Not very grateful.
I have tried delaying execution, but it still triggers incorrectly in the end
The text was updated successfully, but these errors were encountered: