Skip to content
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

Fix ChatView disappearing when call events happening #181

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

ipavlidakis
Copy link
Collaborator

@ipavlidakis ipavlidakis commented Oct 10, 2023

🔗 Issue Links

Resolves https://github.com/GetStream/ios-issues-tracking/issues/577

📝 Summary

ChatView was disappearing when call events where happening.

🛠 Implementation

The issue is that the ChatViewModel we rely on wasn't hold as StateObject somewhere, which causing the creation of multiple instances that were then affecting the ChatView presentation.

🧪 Manual Testing Notes

  • Join a call
  • Open chat
  • Start sharing from another participant

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change follows zero ⚠️ policy (required)
  • This change should receive manual QA
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Comparison screenshots added for visual changes
  • Affected documentation updated (Docusaurus, tutorial, CMS)

@ipavlidakis ipavlidakis added the bug Something isn't working label Oct 10, 2023
@ipavlidakis ipavlidakis self-assigned this Oct 10, 2023
@ipavlidakis ipavlidakis requested a review from a team as a code owner October 10, 2023 11:11
Copy link
Collaborator

@martinmitrevski martinmitrevski left a comment

Choose a reason for hiding this comment

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

lgtm ✅ just one header needs fixing

import SwiftUI
import StreamVideoSwiftUI

struct ChatModifier: ViewModifier {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this idea of having chat modifier. Maybe we could introduce chat extensions for video as reusable components in the future 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds a good idea and will make integration much easier for customers. I think we should have that in our roadmap

@ipavlidakis ipavlidakis merged commit 7f1ae48 into main Oct 10, 2023
8 of 11 checks passed
@ipavlidakis ipavlidakis deleted the fix/chat-popup-closing-when-any-call-event-occur branch October 10, 2023 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants