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

[CIS-1591] Fix message list scrolling when popping from navigation stack #2239

Merged

Conversation

nuno-vieira
Copy link
Member

@nuno-vieira nuno-vieira commented Aug 17, 2022

🔗 Issue Links

CIS-1591
#1793

🎯 Goal

Fix the message list scrolling when popping the message list from the navigation stack.

🛠 Implementation

The reason this happened was that the Keyboard hide notification is still triggered when popping from the navigation stack, and the keyboard is dismissed but there's no animation, only the message list animates. To fix this, on the keyboard handler we check if the view controller is still present in the navigation stack. If not, we don't hide the keyboard.

🎨 Showcase

Before After
RPReplay_Final1660739284.mov
video.mp4

🧪 Manual Testing Notes

  • Open a Channel
  • Dismiss a Channel
  • The message list should not move

☑️ Contributor Checklist

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

@nuno-vieira nuno-vieira added 🐞 Bug An issue or PR related to a bug 🎨 SDK: StreamChatUI Tasks related to the StreamChatUI SDK labels Aug 17, 2022
@nuno-vieira nuno-vieira requested a review from a team as a code owner August 17, 2022 12:39
Copy link
Contributor

@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.

@sonarcloud
Copy link

sonarcloud bot commented Aug 17, 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
No Duplication information No Duplication information

@nuno-vieira nuno-vieira merged commit 78cab94 into develop Aug 17, 2022
@nuno-vieira nuno-vieira deleted the fix/CIS-1591-Fix-message-list-scrolling-when-swiping-back branch August 17, 2022 15:51
@polqf polqf mentioned this pull request Sep 1, 2022
polqf pushed a commit that referenced this pull request Sep 1, 2022
…ack (#2239)

* Fix message list scrolling when popping from navigation stack

* Update CHANGELOG.md

* Update CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug An issue or PR related to a bug 🎨 SDK: StreamChatUI Tasks related to the StreamChatUI SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants