Message view includes images of all chat members
Summary
The current message page https://foodsharing.de/?page=msg includes images of all members of chats, even if they are not displayed. This results in a huge number of images that might be loaded unnecessarily. Only pictures that are displayed should be loaded.
Steps to reproduce
Have a look at that page and the image traffic.
What is the current bug behavior?
The span.pics
element of chat groups might include more than 4 pictures.
What is the expected correct behavior?
At most 4 pictures are loaded per chat.