-
Notifications
You must be signed in to change notification settings - Fork 13k
fix(federation): update group DMs names #37840
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
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
|
Caution Review failedThe pull request is closed. WalkthroughAdds a Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Matrix as Matrix Bridge
participant MemberEvt as Federation Member Event
participant CreateDM as createDirectRoom
participant RoomSvc as RoomService
participant DB as Database
Matrix->>MemberEvt: inbound invite event
MemberEvt->>CreateDM: createDirectRoom(members, { forceNew: true, ... })
CreateDM->>DB: skip existing-room lookup (forceNew)
CreateDM->>DB: insert new direct room
DB-->>CreateDM: created room (_id)
CreateDM->>RoomSvc: createUserSubscription(member, { roles?, status?, inviter? })
RoomSvc->>DB: upsert subscription (include roles/fname/name/status as provided)
DB-->>RoomSvc: subscription persisted
alt member is federated creator
RoomSvc->>DB: set owner role on member subscription
DB-->>RoomSvc: roles updated
end
RoomSvc->>RoomSvc: updateDirectMessageRoomName(roomId)
RoomSvc->>DB: query active members excluding INVITED
DB-->>RoomSvc: active members
RoomSvc->>DB: update room fname/name
DB-->>RoomSvc: room updated
RoomSvc-->>MemberEvt: notify completion
MemberEvt-->>Matrix: acknowledge invite handling
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (9)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
75fc3d0 to
6674a96
Compare
484e78d to
b96badd
Compare
284f7bb to
eb67e4b
Compare
b96badd to
f91381d
Compare
83299a8 to
9b8c873
Compare
cb1c027 to
a30039d
Compare
56a63e2 to
baefb64
Compare
e61ca81 to
22c643a
Compare
|
/bark |
|
AU AU |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #37840 +/- ##
===========================================
- Coverage 67.75% 67.72% -0.03%
===========================================
Files 3463 3464 +1
Lines 113702 113730 +28
Branches 20901 20908 +7
===========================================
- Hits 77034 77026 -8
- Misses 34501 34527 +26
- Partials 2167 2177 +10
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
baefb64 to
3692b7a
Compare
75c2b9b to
a299092
Compare
|
This PR currently has a merge conflict. Please resolve this and then re-add the |
a299092 to
aa6dbc8
Compare
Proposed changes (including videos or screenshots)
Issue(s)
FB-152
Steps to test or reproduce
Further comments
Summary by CodeRabbit
New Features
Improvements
Tests
✏️ Tip: You can customize this high-level summary in your review settings.