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 breadcrumbs #7311

Merged
merged 2 commits into from
Oct 10, 2022
Merged

Fix breadcrumbs #7311

merged 2 commits into from
Oct 10, 2022

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Oct 7, 2022

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

(Not in prod so no changelog)
Fix regression from #7285.
When switching room using left panel breadcrumbs, a TimelineFragment was recreated, but because of the usage of activityViewModel, the ViewModel was not, so the current room was not changed. Using fragmentViewModel in TimelineFragment and parentFragmentViewModel in the 2 children it fixes the pb.

Motivation and context

Fix regression

Screenshots / GIFs

Tests

  • Switch room using breadcrumbs in a timeline.

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@bmarty bmarty requested a review from jmartinesp October 7, 2022 09:30
@bmarty bmarty added the Z-NextRelease For issues and PRs which should be included in the NextRelease. label Oct 7, 2022
@@ -282,8 +282,6 @@ class TimelineFragment :
private lateinit var callActionsHandler: StartCallActionsHandler

private val currentCallsViewPresenter = CurrentCallsViewPresenter()
private val isEmojiKeyboardVisible: Boolean
Copy link
Member Author

Choose a reason for hiding this comment

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

This is now in MessageComposerFragment

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 7, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bmarty bmarty requested review from a team, jmartinesp and mnaturel and removed request for jmartinesp and a team October 7, 2022 12:01
Copy link
Contributor

@mnaturel mnaturel left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. Tested and it is working well.

@bmarty bmarty merged commit 34cc5e8 into develop Oct 10, 2022
@bmarty bmarty deleted the feature/bma/fix_bc branch October 10, 2022 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-NextRelease For issues and PRs which should be included in the NextRelease.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants