Skip to content

fix: duplicate green banner - WPB-23037#4267

Closed
WilhelmOks wants to merge 1 commit intorelease/cycle-4.15from
fix/WPB-23037-duplicate-green-banner
Closed

fix: duplicate green banner - WPB-23037#4267
WilhelmOks wants to merge 1 commit intorelease/cycle-4.15from
fix/WPB-23037-duplicate-green-banner

Conversation

@WilhelmOks
Copy link
Collaborator

@WilhelmOks WilhelmOks commented Feb 4, 2026

BugWPB-23037 [iOS] Duplicate initial system messages

Issue

For some 1:1 conversations, the green welcome banner is appearing twice.
The code for the 1:1 green banner is in a complete different place than the code for group and channel conversations.
This PR adds a check for 1:1 in the latter code (channels + groups) and only adds the green banner if the conversation type is not 1:1.
With the assumption that the banner is added twice because somehow both parts of the code were executed, the new check should prevent the second banner from being added.

Testing

We couldn't figure out how to reliably reproduce the duplicate banners, but this code has fixed the issue locally in one of the 1:1 conversations for @jullianm


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

Test Results

1 867 tests   1 840 ✅  2m 8s ⏱️
  301 suites     27 💤
    1 files        0 ❌

Results for commit f99696a.

Summary: workflow run #21676582017
Allure report (download zip): html-report-27558-fix_WPB-23037-duplicate-green-banner

Copy link
Contributor

@jullianm jullianm left a comment

Choose a reason for hiding this comment

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

LGTM, I confirm this fix remove the duplicated banners on some of my impacted 1:1s

@WilhelmOks WilhelmOks enabled auto-merge (squash) February 4, 2026 15:46
Copy link
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

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

@WilhelmOks I think the intention of the ticket was to prevent migrating the system messages from proteus conversations when migrating to mls (look at OneOnOneSource.swift:134):

All 1:1 have a proteus conversation and since mls is enabled a mls one. At creation of conversations the system messages are inserted.

When we resolve 1:1 conversations, we try to figure out which 1:1 conversation to display if mls is enabled and can be supported on both sides we migrate all previous messages of the proteus conversation to the final mls conversation which is displayed.

@WilhelmOks
Copy link
Collaborator Author

@WilhelmOks I think the intention of the ticket was to prevent migrating the system messages from proteus conversations when migrating to mls (look at OneOnOneSource.swift:134):

All 1:1 have a proteus conversation and since mls is enabled a mls one. At creation of conversations the system messages are inserted.

When we resolve 1:1 conversations, we try to figure out which 1:1 conversation to display if mls is enabled and can be supported on both sides we migrate all previous messages of the proteus conversation to the final mls conversation which is displayed.

@netbe thanks for the insight. We discussed it in our team and consulted with Marie.
If I understand correctly, it means that the fix in this PR is not a complete fix because it only removed duplicate green banners but other duplicate system messages remain.
Also this issue seems to be an old one and not caused by the implementation of the green banner.
I got assigned this ticket because we assumed that it was an issue with the green banner only or caused by the green banner.
Now we will reassign it to Core and I will close this PR. Sorry for the confusion.
Please contact me if you have questions about the implementation of the green banner or need any assistance.

@WilhelmOks WilhelmOks closed this Feb 5, 2026
auto-merge was automatically disabled February 5, 2026 10:31

Pull request was closed

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.

3 participants