Skip to content
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

(Fix) Receiving chat pms from other users while in chat pm #4391

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

Roardom
Copy link
Contributor

@Roardom Roardom commented Dec 24, 2024

When conversing in a chat pm and you receive a chat pm from another user, their message will appear inside of the current chat pm you have open.

This is because of incorrect logic inside Chatbox.vue. When user A sends a message to user B via the Chatter event, the message will have a subproperty user with user A's id. But user A is user B's target. So, these two properties need to be compared to determine if the message should be saved or not.

When conversing in a chat pm and you receive a chat pm from another user, their message will appear inside of the current chat pm you have open.

This is because of incorrect logic inside Chatbox.vue. When user A sends a message to user B via the Chatter event, the message will have a subproperty `user` with user A's id. But user A is user B's target. So, these two properties need to be compared to determine if the message should be saved or not.
@HDVinnie HDVinnie merged commit 2eeff69 into HDInnovations:8.x.x Dec 27, 2024
5 checks passed
@HDVinnie HDVinnie deleted the chatbox-pm branch December 27, 2024 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants