From 0620f4ba9973e82a7dfe05d96d02011ac31966a9 Mon Sep 17 00:00:00 2001 From: bjoern Date: Sat, 8 Feb 2025 20:25:48 +0100 Subject: [PATCH] contact profile: hide unneeded mute buttons (#2590) * the contact's 'mute' button is not needed if there is no chat with the contact * update CHANGELOG --- CHANGELOG.md | 2 +- deltachat-ios/Controller/ContactDetailViewController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f63eb83aa..c912d9068 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ - Copy scanned QR code text to clipboard (#2582) - Improve "All media empty" and "Block contact" wordings (#2580) - Unify buttons and icons (#2584) -- Hide unneeded buttons in contact profiles (#2589) +- Hide unneeded buttons in contact profiles (#2589, #2590) - Fix: Allow to share contacts that do not have a chat (#2583) diff --git a/deltachat-ios/Controller/ContactDetailViewController.swift b/deltachat-ios/Controller/ContactDetailViewController.swift index b73306849..8e9149cae 100644 --- a/deltachat-ios/Controller/ContactDetailViewController.swift +++ b/deltachat-ios/Controller/ContactDetailViewController.swift @@ -330,7 +330,7 @@ class ContactDetailViewController: UITableViewController { } headerCell.setGreenCheckmark(greenCheckmark: viewModel.greenCheckmark) headerCell.setMuted(isMuted: viewModel.chatIsMuted) - headerCell.showMuteButton(show: true) + headerCell.showMuteButton(show: viewModel.chatId != 0) } headerCell.showSearchButton(show: viewModel.chatCanSend) }