Skip to content

fix: Server sending 2 notifications when @all/@here were used by a user without permissions#32289

Merged
kodiakhq[bot] merged 5 commits intodevelopfrom
fix/mentions-duplicate-error-message
Apr 29, 2024
Merged

fix: Server sending 2 notifications when @all/@here were used by a user without permissions#32289
kodiakhq[bot] merged 5 commits intodevelopfrom
fix/mentions-duplicate-error-message

Conversation

@KevLehman
Copy link
Copy Markdown
Member

@KevLehman KevLehman commented Apr 22, 2024

https://rocketchat.atlassian.net/browse/SUP-549

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

A duplicate call to api.broadcast was causing that an error on BeforeSavePreventMention was being propagated twice to clients.

The global handler on saveMessage was updated to support using the details property coming from meteor errors allowing the original hook to just throw and allow the caller to handle the error accordingly.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 22, 2024

🦋 Changeset detected

Latest commit: 351545f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 32 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/api-client Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/models Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.50%. Comparing base (105a1eb) to head (351545f).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #32289      +/-   ##
===========================================
+ Coverage    55.48%   55.50%   +0.02%     
===========================================
  Files         2371     2374       +3     
  Lines        52062    52095      +33     
  Branches     10651    10657       +6     
===========================================
+ Hits         28888    28917      +29     
- Misses       20636    20637       +1     
- Partials      2538     2541       +3     
Flag Coverage Δ
e2e 54.73% <ø> (+0.02%) ⬆️
unit 75.37% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@dionisio-bot
Copy link
Copy Markdown
Contributor

dionisio-bot bot commented Apr 22, 2024

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

@KevLehman KevLehman marked this pull request as ready for review April 22, 2024 20:21
@KevLehman KevLehman requested review from a team as code owners April 22, 2024 20:21
Copy link
Copy Markdown
Contributor

@MarcosSpessatto MarcosSpessatto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a brief description to the PR?

Copy link
Copy Markdown
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving it on behalf of frontend team

@jessicaschelly jessicaschelly added the stat: QA assured Means it has been tested and approved by a company insider label Apr 25, 2024
@scuciatto scuciatto added this to the 6.9 milestone Apr 26, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Apr 26, 2024
@dionisio-bot dionisio-bot bot removed the stat: ready to merge PR tested and approved waiting for merge label Apr 26, 2024
@KevLehman KevLehman added the stat: ready to merge PR tested and approved waiting for merge label Apr 29, 2024
@kodiakhq kodiakhq bot merged commit 3b65001 into develop Apr 29, 2024
@kodiakhq kodiakhq bot deleted the fix/mentions-duplicate-error-message branch April 29, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants