-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding reaction to minimized media re-opens it #12765
Comments
I guess the server emits the message, after it was reacted to:
That upserts the message on the client side
while the collapsed-status is not saved in the model:
causing the collapsed-status to be reset. A solution could be to add the collapsed-status to the message model (unfortunately this is where my JS/Meteor ends) |
I'm not that familiar with Rocket.Chat codebase enough, but I think that adding Collapse-status should be stored on the client side and the client should decide that whether to The problem, in this case, is that when a person reacts on a media. An event is published from the server which makes the 'rocketchat-message-attachments' component re-render on the client side. When that component re-renders it checks for 'unless mediaCollapsed' status which returns true and the expanded image is rendered. I'm not sure what's making I'm new to Rocket.Chat and I would like to work on this issue. It would be great if someone from Rocket.Chat community could mentor me. |
@tassoevan could I work on this issue? |
@himanish-star 🏁Go ahead! Contact me if you need some help. |
Retrived collapsed status from ChatMessage and added it as a parameter in ChatMessage.upsert(..) fixes: RocketChat#12765
Retrived collapsed status from ChatMessage and added it as a parameter in ChatMessage.upsert(..) fixes: RocketChat#12765
Description:
When adding a reaction (emoji) to an image or gif that has been minimized (small black triangle) before, that media will get re-opened on all clients.
Steps to reproduce:
Expected behavior:
Media does not get maximized
Actual behavior:
Media gets maximized on every client
Server Setup Information:
The text was updated successfully, but these errors were encountered: