Skip to content

fix: Removed duplicated alert system. - WPB-23037#4492

Open
JaCaLlaSchwarz wants to merge 8 commits intodevelopfrom
fix/remove_duplicated_warning_message_WPB23037_v2
Open

fix: Removed duplicated alert system. - WPB-23037#4492
JaCaLlaSchwarz wants to merge 8 commits intodevelopfrom
fix/remove_duplicated_warning_message_WPB23037_v2

Conversation

@JaCaLlaSchwarz
Copy link
Copy Markdown
Collaborator

@JaCaLlaSchwarz JaCaLlaSchwarz commented Mar 25, 2026

BugWPB-23037 [iOS] Duplicate initial system messages

Issue

Duplicated Alert warning message
simulator_screenshot_3A0756FF-82F6-4ABD-8B5A-4A02C1930624

Testing

Before After
simulator_screenshot_3A0756FF-82F6-4ABD-8B5A-4A02C1930624  simulator_screenshot_93B2FA66-E291-4F83-9E1C-2ABC7EE03F63

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.

@JaCaLlaSchwarz JaCaLlaSchwarz changed the title fix: Removed duplicated alert system. WPB - 23037 fix: Removed duplicated alert system. WPB-23037 Mar 25, 2026
@JaCaLlaSchwarz JaCaLlaSchwarz changed the title fix: Removed duplicated alert system. WPB-23037 fix: Removed duplicated alert system. - WPB-23037 Mar 25, 2026
Copy link
Copy Markdown
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.

Left a couple comments, it's going towards the right direction but still need some changes before approval.

I would expect conversation snapshot test to change too somehow

Comment on lines -623 to -626
if source == .slowSync {
// Slow synced conversations should be considered read from the start
conversation.lastReadServerTimeStamp = conversation.lastModifiedDate
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

question: this should not be removed or is it deadcode?

Comment on lines -1172 to -1173
// Slow synced conversations should be considered read from the start
localConversation.lastReadServerTimeStamp = localConversation.lastModifiedDate
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

issue: careful, I guess this is still needed

connectionViewController = UserConnectionViewController(userSession: userSession, user: otherParticipant)
headerView = connectionViewController?.view
} else {
noUserConnectionViewController = NoUserConnectionViewController(userSession: userSession)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

suggestion: I feel like the name of this view NoUserConnectionViewController is a bit misleading, as it's the header for groups or channels.

maybe DefaultConversationHeaderViewController, feel free to challenge this name ;)


let connectionOrOneOnOne = conversation.conversationType == .connection || conversation
.conversationType == .oneOnOne
let connectionOrOneOnOne = [.connection, .oneOnOne /* , .group */ ]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

suggestion: revert, this change is not necessary

await context.perform { [self] in
if isInitialFetch {
// we just got a new conversation, we display new conversation header
localConversation.appendNewConversationSystemMessage(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

issue: not inserting the new conversationsystemMessage is not enough (+ could be avoided). For current conversations the double system message would still show.

I suggest to not return a cell on the conversationContentViewController for the newConversation system message

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 25, 2026

Test Results

    3 files    541 suites   3m 13s ⏱️
3 351 tests 3 324 ✅ 27 💤 0 ❌
3 352 runs  3 325 ✅ 27 💤 0 ❌

Results for commit 0071777.

♻️ This comment has been updated with latest results.

Summary: workflow run #23638232142
Allure report (download zip): html-report-28844-fix_remove_duplicated_warning_message_WPB23037_v2

@JaCaLlaSchwarz JaCaLlaSchwarz requested a review from netbe March 25, 2026 15:30
@JaCaLlaSchwarz JaCaLlaSchwarz force-pushed the fix/remove_duplicated_warning_message_WPB23037_v2 branch from 90c22a2 to ae6308f Compare March 25, 2026 16:55
@datadog-wireapp
Copy link
Copy Markdown

datadog-wireapp bot commented Mar 25, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 0071777 | Docs | Was this helpful? Give us feedback!

@sonarqubecloud
Copy link
Copy Markdown

@samwyndham
Copy link
Copy Markdown
Contributor

FYI I'll wait for the issues @netbe raised to be addressed before review.

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