don't enlage email chats avatar placeholder

This commit is contained in:
adbenitez 2025-07-31 16:47:58 +02:00
parent a280407370
commit cc64142e7b
2 changed files with 3 additions and 2 deletions

View file

@ -4,6 +4,7 @@
* hide contact email addresses in search results
* disable non-functional message editing and ephemeral messages timer settings in classic email thread chat
* don't enlage email chats avatar placeholder
## v2.8.0

View file

@ -329,7 +329,7 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity
File file = new File(profileImagePath);
if (file.exists()) {
if (chatIsEncrypted && file.exists()) {
profileImageUri = Uri.fromFile(file);
String type = "image/" + profileImagePath.substring(profileImagePath.lastIndexOf(".") + 1);
@ -338,7 +338,7 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity
intent.putExtra(MediaPreviewActivity.ACTIVITY_TITLE_EXTRA, title);
intent.putExtra( // show edit-button, if the user is allowed to edit the name/avatar
MediaPreviewActivity.EDIT_AVATAR_CHAT_ID,
(chatIsMultiUser && chatIsEncrypted && !chatIsInBroadcast && !chatIsMailingList) ? chatId : 0
(chatIsMultiUser && !chatIsInBroadcast && !chatIsMailingList) ? chatId : 0
);
startActivity(intent);
} else if (chatIsMultiUser){