File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/main/java/org/thoughtcrime/securesms Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
## Unreleased
4
4
5
5
* fix "Archived" item's layout in chat-list
6
+ * don't enlarge "Saved Messages" and "Devices Messages" avatars on click
6
7
7
8
## v2.9.0
8
9
Original file line number Diff line number Diff line change @@ -315,12 +315,12 @@ public void onEnlargeAvatar() {
315
315
String profileImagePath ;
316
316
String title ;
317
317
Uri profileImageUri ;
318
- boolean chatIsEncrypted = true ;
318
+ boolean enlargeAvatar = true ;
319
319
if (chatId !=0 ) {
320
320
DcChat dcChat = dcContext .getChat (chatId );
321
321
profileImagePath = dcChat .getProfileImage ();
322
322
title = dcChat .getName ();
323
- chatIsEncrypted = dcChat .isEncrypted ();
323
+ enlargeAvatar = dcChat .isEncrypted () && ! dcChat . isSelfTalk () && ! dcChat . isDeviceTalk ();
324
324
} else {
325
325
DcContact dcContact = dcContext .getContact (contactId );
326
326
profileImagePath = dcContact .getProfileImage ();
@@ -329,7 +329,7 @@ public void onEnlargeAvatar() {
329
329
330
330
File file = new File (profileImagePath );
331
331
332
- if (chatIsEncrypted && file .exists ()) {
332
+ if (enlargeAvatar && file .exists ()) {
333
333
profileImageUri = Uri .fromFile (file );
334
334
String type = "image/" + profileImagePath .substring (profileImagePath .lastIndexOf ("." ) + 1 );
335
335
You can’t perform that action at this time.
0 commit comments