fix: duplicate green banner - WPB-23037#4267
fix: duplicate green banner - WPB-23037#4267WilhelmOks wants to merge 1 commit intorelease/cycle-4.15from
Conversation
Test Results1 867 tests 1 840 ✅ 2m 8s ⏱️ Results for commit f99696a. Summary: workflow run #21676582017 |
jullianm
left a comment
There was a problem hiding this comment.
LGTM, I confirm this fix remove the duplicated banners on some of my impacted 1:1s
netbe
left a comment
There was a problem hiding this comment.
@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. |
Pull request was closed
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
[WPB-XXX].UI accessibility checklist
If your PR includes UI changes, please utilize this checklist: