-
Notifications
You must be signed in to change notification settings - Fork 71
DROID-4175 Widgets | Participants names #2946
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
DROID-4175 Widgets | Participants names #2946
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors participant name resolution in widgets to use a centralized ParticipantSubscriptionContainer instead of looking up creators from individual chat preview dependencies. The main changes include:
- Introduction of a new extension function
resolveParticipantNamefor consistent participant name resolution across the codebase - Integration of
ParticipantSubscriptionContainerinto widget containers - Removal of the old
extractCreatorNamemethod in favor of the centralized approach
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| ParticipantExtensions.kt | New extension function for resolving participant names with fallback chain (name → globalName → fallback) |
| ChatListWidgetContainer.kt | Integrated participant subscription container, removed old extractCreatorName method, updated flow to combine participants data |
| VaultViewModel.kt | Refactored to use new resolveParticipantName extension function in two methods (createChatSpaceView and createDataSpaceWithChatView) |
| WidgetContainerDelegate.kt | Added participantContainer as a dependency and passed it to ChatListWidgetContainer instances |
| HomeScreenViewModel.kt | Added participantContainer to constructor and factory, passed to WidgetContainerDelegateImpl |
| HomescreenDI.kt | Added participantSubscriptionContainer() to dependency interface |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Description
What type of PR is this? (check all applicable)
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?