Fixed chat attachments preview

Merged Sylvain Berfini requested to merge fix/chat_attachments_preview into master

Merge request reports