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

✨ Add implement open session detail from notification #834

Conversation

Corvus400
Copy link
Contributor

Issue

Overview (Required)

  • Fixed crash when displaying notifications.
  • SessionDetail is now opened when a notification is tapped.

Links

Movie

after.mp4

@github-actions
Copy link

github-actions bot commented Oct 2, 2022

There are differences in Compose previews:

@github-actions github-actions bot temporarily deployed to deploygate-distribution October 2, 2022 12:21 Inactive
Comment on lines 179 to 181
sessionIdFromNotification?.let {
kaigiAppScaffoldState.onTimeTableClick(TimetableItemId(it))
}
Copy link
Member

Choose a reason for hiding this comment

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

I think this onTimeTableClick can be called many times. How about using Launched Effect?

Suggested change
sessionIdFromNotification?.let {
kaigiAppScaffoldState.onTimeTableClick(TimetableItemId(it))
}
LaunchedEffect(sessionIdFromNotification) {
sessionIdFromNotification?.let {
kaigiAppScaffoldState.onTimeTableClick(TimetableItemId(it))
}
}

@takahirom
Copy link
Member

Looks good. Please check small point 🙏

@github-actions
Copy link

github-actions bot commented Oct 3, 2022

There are differences in Compose previews:

@github-actions github-actions bot temporarily deployed to deploygate-distribution October 3, 2022 01:16 Inactive
@takahirom
Copy link
Member

Thank you for providing the notification to DroidKaigi!

@takahirom takahirom merged commit 55afe76 into DroidKaigi:feature-notification Oct 3, 2022
@Corvus400 Corvus400 deleted the feature/implement_open_session_detail_from_notification branch October 3, 2022 03:15
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.

2 participants