Skip to content

Conversation

@dab246
Copy link
Member

@dab246 dab246 commented Oct 17, 2025

Issue

Duplicated email subject after enabling thread mode

Reproduce

Steps to reproduce

Open any email while thread mode is disabled.
Go to Settings → Enable thread mode.
Go back to the previously opened email view.
reproduce.mov

Root cause

The issue occurs because the EmailView uses a GlobalKey, which prevents the widget from being disposed of when switching views. As a result, when the EmailView is rebuilt, it retains the previous object state within the class instead of creating a fresh instance, causing outdated or incorrect data (such as the old email subject) to be displayed.

Resolved

Screen.Recording.2025-10-17.at.12.48.09.PM.mov

@github-actions
Copy link

This PR has been deployed to https://linagora.github.io/tmail-flutter/4110.

@dab246 dab246 force-pushed the bugfix/thread-toggle-duplicate-subject-on-web branch from 6e3a9c1 to 2adc6a3 Compare October 17, 2025 06:37
hoangdat
hoangdat previously approved these changes Nov 2, 2025
@hoangdat
Copy link
Member

hoangdat commented Nov 2, 2025

  • please rebase and update

@dab246 dab246 dismissed stale reviews from hoangdat and tddang-linagora via d903008 November 3, 2025 03:20
@dab246 dab246 force-pushed the bugfix/thread-toggle-duplicate-subject-on-web branch from 2adc6a3 to d903008 Compare November 3, 2025 03:20
@dab246
Copy link
Member Author

dab246 commented Nov 3, 2025

  • please rebase and update

Done

@dab246 dab246 requested a review from hoangdat November 3, 2025 03:20
@hoangdat hoangdat merged commit 832f8e1 into master Nov 3, 2025
23 checks passed
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.

4 participants