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

Adding Basic Chat Support #224

Closed
wants to merge 23 commits into from
Closed

Conversation

KevinSchildhorn
Copy link
Contributor

@KevinSchildhorn KevinSchildhorn commented Apr 4, 2024

Details

Adding Stream Chat support for Android and iOS.

Changes

  • Adding Stream library for Android and iOS
  • Adding new tab for Chat (This could be changed in the future)
  • Adding Compose callback for calling the stream ui from shared ui
  • Adding documentation
  • Automatically signing the user into the messaging general` channel
Android iOS
compose Screen_recording_20240404_113702.webm Simulator Screen Recording - iPhone 15 Pro - 2024-04-04 at 10 21 42
Swift UI N/A Simulator Screen Recording - iPhone 15 Pro - 2024-04-04 at 10 23 56

@KevinSchildhorn KevinSchildhorn marked this pull request as draft April 4, 2024 14:15
@KevinSchildhorn KevinSchildhorn marked this pull request as ready for review April 4, 2024 15:42
@samhill303 samhill303 requested a review from faogustavo April 9, 2024 14:21
Comment on lines +77 to +87
if (!ChatManager.isConnected) {
ChatManager.initChat(
applicationContext = applicationContext,
userData = UserData(
id = user.uid,
name = user.displayName,
email = user.email,
pictureUrl = user.photoUrl?.toString(),
),
)
}

Choose a reason for hiding this comment

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

Is the chat only enabled for authenticated people? If yes, should we create a placeholder screen for the chat tab?

Reason: if I'm not authenticated, the app crashes

Choose a reason for hiding this comment

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

This logic does not update the current user when switching accounts.

Comment on lines +51 to +53
InitializationState.NOT_INITIALIZED -> {
Text(text = "Not initialized...")
}

Choose a reason for hiding this comment

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

Should we add an "action" to initialize or retry on failure?

@samhill303 samhill303 requested a review from kpgalligan April 16, 2024 14:05
@samhill303
Copy link
Contributor

Closing PR's as we aren't planning to implement this right away. But will save the branch

@samhill303 samhill303 closed this Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants