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
When editing a text-only message that has been edited at least once before, emote parsing is not triggered on the new content.
This most likely happens because ReactJS (in trying to minimize DOM changes) simply changes the data for the text node, which does not trigger the observer callback. If a message had not been edited before, the adding of the "(edited)" tag triggers the callback. If there are any existing emotes, a new text node is created as a child of the img element (the cause of a previously fixed bug), also triggering the callback.
The text was updated successfully, but these errors were encountered:
When editing a text-only message that has been edited at least once before, emote parsing is not triggered on the new content.
This most likely happens because ReactJS (in trying to minimize DOM changes) simply changes the data for the text node, which does not trigger the observer callback. If a message had not been edited before, the adding of the "(edited)" tag triggers the callback. If there are any existing emotes, a new text node is created as a child of the
img
element (the cause of a previously fixed bug), also triggering the callback.The text was updated successfully, but these errors were encountered: