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: update last read message on conversation opening [WPB-7208] #2819

Merged
merged 5 commits into from
Mar 26, 2024

Conversation

Garzas
Copy link
Contributor

@Garzas Garzas commented Mar 26, 2024

BugWPB-7208 [Android] Conversations not being marked as read until I send a message


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

When user opens conversation screen messages are not being marked as read until user will scroll.

Solutions

Additional LauncherEffect to be triggered at start to mark latest message as read

@@ -839,6 +839,8 @@ fun MessageList(
selectedMessageId: String?
) {
val prevItemCount = remember { mutableStateOf(lazyPagingMessages.itemCount) }
val readLastMessageAtStartTriggered = remember { mutableStateOf(false) }
Copy link
Contributor

Choose a reason for hiding this comment

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

This state is not being set to true anywhere 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wow, moving function I forgot about that...

Copy link
Contributor

github-actions bot commented Mar 26, 2024

Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit bdf4ea6.

♻️ This comment has been updated with latest results.

…reapp/wire-android-reloaded into fix/update-last-read-message-on-start
@Garzas Garzas enabled auto-merge (squash) March 26, 2024 11:30
@Garzas Garzas merged commit 4efd892 into release/candidate Mar 26, 2024
10 of 11 checks passed
@Garzas Garzas deleted the fix/update-last-read-message-on-start branch March 26, 2024 11:45
Copy link
Contributor

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 3759 succeeded.

The build produced the following APK's:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants