Skip to content

Fix duplicate subtitle widget in group call panel#30397

Open
paterkleomenis wants to merge 1 commit intotelegramdesktop:devfrom
paterkleomenis:fix-subtitle-duplication
Open

Fix duplicate subtitle widget in group call panel#30397
paterkleomenis wants to merge 1 commit intotelegramdesktop:devfrom
paterkleomenis:fix-subtitle-duplication

Conversation

@paterkleomenis
Copy link
Copy Markdown
Contributor

The _subtitle.create() rpl chain calls setupMembers() synchronously during the FlatLabel constructor. setupMembers() triggers geometry updates that re-enter refreshTitle() while object_ptr::create() has not yet assigned the new widget to _subtitle, so a second subtitle is created and left as an orphaned visible child.

Moving setupMembers() before _subtitle.create() ensures _members exists before the rpl chain fires, preventing the re-entrancy.

@ilya-fedin
Copy link
Copy Markdown
Contributor

pr conflicts...

@paterkleomenis paterkleomenis force-pushed the fix-subtitle-duplication branch from 6c6502a to 55d9a0e Compare March 5, 2026 08:41
@paterkleomenis
Copy link
Copy Markdown
Contributor Author

pr conflicts...

i am sorry, now it should be good

The _subtitle.create() rpl chain calls setupMembers() synchronously
during the FlatLabel constructor. setupMembers() triggers geometry
updates that re-enter refreshTitle() while object_ptr::create() has
not yet assigned the new widget to _subtitle, so a second subtitle
is created and left as an orphaned visible child.

Moving setupMembers() before _subtitle.create() ensures _members
exists before the rpl chain fires, preventing the re-entrancy.
@paterkleomenis paterkleomenis force-pushed the fix-subtitle-duplication branch from 55d9a0e to fa25d7d Compare March 5, 2026 11:57
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.

2 participants