From b4ed26b842d332987e4c8a2b0fecdcd38ea67685 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Sat, 2 Aug 2025 21:25:45 +0200 Subject: [PATCH 1/2] don't enlarge avatars for special chats --- .../java/org/thoughtcrime/securesms/ProfileActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/thoughtcrime/securesms/ProfileActivity.java b/src/main/java/org/thoughtcrime/securesms/ProfileActivity.java index 30136c6f2..30356c8de 100644 --- a/src/main/java/org/thoughtcrime/securesms/ProfileActivity.java +++ b/src/main/java/org/thoughtcrime/securesms/ProfileActivity.java @@ -315,12 +315,12 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity String profileImagePath; String title; Uri profileImageUri; - boolean chatIsEncrypted = true; + boolean enlargeAvatar = true; if(chatId!=0) { DcChat dcChat = dcContext.getChat(chatId); profileImagePath = dcChat.getProfileImage(); title = dcChat.getName(); - chatIsEncrypted = dcChat.isEncrypted(); + enlargeAvatar = dcChat.isEncrypted() && !dcChat.isSelfTalk() && !dcChat.isDeviceTalk(); } else { DcContact dcContact = dcContext.getContact(contactId); profileImagePath = dcContact.getProfileImage(); @@ -329,7 +329,7 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity File file = new File(profileImagePath); - if (chatIsEncrypted && file.exists()) { + if (enlargeAvatar && file.exists()) { profileImageUri = Uri.fromFile(file); String type = "image/" + profileImagePath.substring(profileImagePath.lastIndexOf(".") + 1); From 72bcbe80c036a36d69fcd5341028b9378ab6f8d0 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Sat, 2 Aug 2025 21:27:49 +0200 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c488c60f..292c4d05c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased * fix "Archived" item's layout in chatlit +* don't enlarge "Saved Messages" and "Devices Messages" avatars on click ## v2.9.0