Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Fix invitations not sending push notifications #3207

Merged
merged 4 commits into from
Sep 26, 2023
Merged

Conversation

S7evinK
Copy link
Contributor

@S7evinK S7evinK commented Sep 26, 2023

The tests added in matrix-org/sytest#1356 uncovered that we don't consider invitations as events the userapi should handle and thus just don't notify the client about any new invitations received over federation.

@S7evinK S7evinK added the T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. label Sep 26, 2023
@S7evinK S7evinK requested a review from a team as a code owner September 26, 2023 12:12
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (db83789) 66.03% compared to head (b157246) 66.03%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3207   +/-   ##
=======================================
  Coverage   66.03%   66.03%           
=======================================
  Files         507      507           
  Lines       57107    57126   +19     
=======================================
+ Hits        37708    37724   +16     
- Misses      15621    15624    +3     
  Partials     3778     3778           
Flag Coverage Δ
unittests 49.44% <75.00%> (+0.03%) ⬆️

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

Files Coverage Δ
userapi/consumers/roomserver.go 70.06% <75.00%> (+0.75%) ⬆️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -448,6 +461,18 @@ func (s *OutputRoomEventConsumer) roomName(ctx context.Context, event *rstypes.H
}
}

// Special case for invites, as we don't store any "current state" for these events,
// we need to make sure that, if present, the m.room.name is sent as well.
if event.Type() == spec.MRoomMember {
Copy link
Member

Choose a reason for hiding this comment

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

Check membership=invite?

@S7evinK S7evinK merged commit d065219 into main Sep 26, 2023
20 checks passed
@S7evinK S7evinK deleted the s7evink/fed-invite-push branch September 26, 2023 13:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants