I have download limit enabled on desktop and phone just for testing. Large videos and images that I download later are sorted to the end of the chat or near the end of the chat rather than replacing the message.
It happens with the core compiled from the master branch, not sure if stable has the same bug. Better develop a failing test on master and then try if it also fails on stable.