-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bugfix
: Chats not loading on tablet layout
#280
Bugfix
: Chats not loading on tablet layout
#280
Conversation
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
….8.0 (#275) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Felber <45291671+FelberMartin@users.noreply.github.com>
…-not-loading-on-tablet-layout
For future referenceIn case we discover any problem related to the removal of the
I decided to not insert this code right away, because we currently do not know why the code is even needed. If we discover the reason, please also insert a detailed comment explaining why this code is needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it looks good.
Tested in both phone, tablet.
Chats are visible. ✅
Navigating back from chat leads to conversation list. ✅
No chat found is not display if a content exist. ✅
…oading-on-tablet-layout
# Conflicts: # feature/metis/conversation/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/ui/ConversationScreen.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
I test all scenarios on both, tablet and phone.
The Android back button is also working now leading the user back to the conversation list.
Your changes seem appropriate and can be merged imo.
Regarding the removal of viewModelStoreOwner
I couldn't find any issues or bugs. I don't find any reason why viewModelStoreOwner
should be used here either.
Problem Description
This PR addresses multiple bugs / issues:
Changes
viewModelStoreOwner
introduced by Tim Ortel in Feature: Reload conversation message on websocket reconnect #30. I talked to him, but he could not remember why exactly this approach with the store was introduced in the first place. I could not find any bugs related to my removal of this code, I tested both smartphone and tablet layouts, navigation between chats and threads, disconnecting from the internet, etc.showThread
properlyloadStates.isIdle
Steps for testing
On both tablet and smartphone test:
Please also thoroughly test the changes to fix bug 1., and test any scenario that could be affected by removing the viewModelStoreOwner.