Skip to content

Conversation

@konstantiniiv
Copy link
Collaborator

@konstantiniiv konstantiniiv commented Dec 1, 2025


  • I understand that contributing to this repository will require me to agree with the CLA

Description

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📜 README.md
  • 📓 tech-docs
  • 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

@konstantiniiv konstantiniiv self-assigned this Dec 1, 2025
Copilot finished reviewing on behalf of konstantiniiv December 1, 2025 12:59
Copy link
Contributor

Copilot AI left a 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 resolveParticipantName for consistent participant name resolution across the codebase
  • Integration of ParticipantSubscriptionContainer into widget containers
  • Removal of the old extractCreatorName method 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.

@konstantiniiv konstantiniiv merged commit e55c43c into main Dec 1, 2025
3 checks passed
@konstantiniiv konstantiniiv deleted the droid-4175-chat-preview-shows-other-members-as-unknown-in-vault branch December 1, 2025 13:44
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants