Skip to content

Commit 7ecf0a7

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents a37fcfc + b2bf7e8 commit 7ecf0a7

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

CHANGELOG-upstream.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
# Delta Chat Android Changelog
22

3+
## Unreleased
4+
5+
* fix "Archived" item's layout in chat-list
6+
* don't enlarge "Saved Messages" and "Devices Messages" avatars on click
7+
* share email address for email contacts instead of vCard
8+
39
## v2.9.0
410

511
* hide contact email addresses in search results
612
* disable non-functional message editing and ephemeral messages timer settings in classic email thread chat
7-
* don't enlage email chats avatar placeholder
13+
* don't enlarge email chats avatar placeholder
814
* improve message date/status footer layout, also in RTL languages
9-
* display correct text when receiving a "Disapearing messages enabled" system message
15+
* display correct text when receiving a "Disappearing messages enabled" system message
1016
* Update to core 2.9.0
1117

1218
## v2.8.0
@@ -21,7 +27,7 @@
2127
* New icon for the QR icon
2228
* Start rebuilding the experimental broadcast lists
2329
into proper channels - note that this is work-in-progress
24-
* Improved separation between unencryted chats/contacts and encrypted ones, avoiding mixing of encrypted and unencrypted messages in the same chat
30+
* Improved separation between unencrypted chats/contacts and encrypted ones, avoiding mixing of encrypted and unencrypted messages in the same chat
2531
* Removed padlocks, as encrypted is the default "normal" state. Instead, unencrypted email is marked with a small email / letter (✉️) icon
2632
* Classic email chats/threads get a big email / letter icon making it easy to recognize
2733
* After some time, add a device message asking to donate. Can't wait? Donate today at https://delta.chat/donate

src/main/java/org/thoughtcrime/securesms/ConversationListItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public void bind(@NonNull ThreadRecord thread,
134134
this.fromView.setText(recipient, state!=DcMsg.DC_STATE_IN_FRESH);
135135
}
136136

137-
subjectView.setVisibility(VISIBLE);
137+
subjectView.setVisibility(chatId == DcChat.DC_CHAT_ID_ARCHIVED_LINK? GONE : VISIBLE);
138138
this.subjectView.setText(thread.getDisplayBody());
139139
this.subjectView.setTypeface(state==DcMsg.DC_STATE_IN_FRESH ? BOLD_TYPEFACE : LIGHT_TYPEFACE);
140140
this.subjectView.setTextColor(state==DcMsg.DC_STATE_IN_FRESH ? ThemeUtil.getThemedColor(getContext(), R.attr.conversation_list_item_unread_color)

src/main/java/org/thoughtcrime/securesms/ProfileActivity.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,12 @@ public void onEnlargeAvatar() {
315315
String profileImagePath;
316316
String title;
317317
Uri profileImageUri;
318-
boolean chatIsEncrypted = true;
318+
boolean enlargeAvatar = true;
319319
if(chatId!=0) {
320320
DcChat dcChat = dcContext.getChat(chatId);
321321
profileImagePath = dcChat.getProfileImage();
322322
title = dcChat.getName();
323-
chatIsEncrypted = dcChat.isEncrypted();
323+
enlargeAvatar = dcChat.isEncrypted() && !dcChat.isSelfTalk() && !dcChat.isDeviceTalk();
324324
} else {
325325
DcContact dcContact = dcContext.getContact(contactId);
326326
profileImagePath = dcContact.getProfileImage();
@@ -329,7 +329,7 @@ public void onEnlargeAvatar() {
329329

330330
File file = new File(profileImagePath);
331331

332-
if (chatIsEncrypted && file.exists()) {
332+
if (enlargeAvatar && file.exists()) {
333333
profileImageUri = Uri.fromFile(file);
334334
String type = "image/" + profileImagePath.substring(profileImagePath.lastIndexOf(".") + 1);
335335

@@ -390,7 +390,12 @@ private void onEditName() {
390390

391391
private void onShare() {
392392
Intent composeIntent = new Intent();
393-
RelayUtil.setSharedContactId(composeIntent, contactId);
393+
DcContact dcContact = dcContext.getContact(contactId);
394+
if (dcContact.isKeyContact()) {
395+
RelayUtil.setSharedContactId(composeIntent, contactId);
396+
} else {
397+
RelayUtil.setSharedText(composeIntent, dcContact.getAddr());
398+
}
394399
ConversationListRelayingActivity.start(this, composeIntent);
395400
}
396401

0 commit comments

Comments
 (0)