mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 17:59:39 +02:00
Merge branch 'main' into adb/issue-3841
This commit is contained in:
commit
c526c42d19
4 changed files with 6 additions and 5 deletions
|
@ -3,6 +3,8 @@
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
* hide contact email addresses in search results
|
* 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
|
## v2.8.0
|
||||||
|
|
||||||
|
|
|
@ -442,7 +442,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||||
menu.findItem(R.id.menu_show_map).setVisible(false);
|
menu.findItem(R.id.menu_show_map).setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dcChat.canSend() || dcChat.isMailingList() ) {
|
if (!dcChat.isEncrypted() || !dcChat.canSend() || dcChat.isMailingList() ) {
|
||||||
menu.findItem(R.id.menu_ephemeral_messages).setVisible(false);
|
menu.findItem(R.id.menu_ephemeral_messages).setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -331,8 +331,7 @@ public class ConversationFragment extends MessageSelectorFragment
|
||||||
menu.findItem(R.id.menu_context_share).setVisible(messageRecord.hasFile());
|
menu.findItem(R.id.menu_context_share).setVisible(messageRecord.hasFile());
|
||||||
boolean canReply = canReplyToMsg(messageRecord);
|
boolean canReply = canReplyToMsg(messageRecord);
|
||||||
menu.findItem(R.id.menu_context_reply).setVisible(chat.canSend() && canReply);
|
menu.findItem(R.id.menu_context_reply).setVisible(chat.canSend() && canReply);
|
||||||
boolean canEdit = canEditMsg(messageRecord);
|
menu.findItem(R.id.menu_context_edit).setVisible(chat.isEncrypted() && chat.canSend() && canEditMsg(messageRecord));
|
||||||
menu.findItem(R.id.menu_context_edit).setVisible(chat.canSend() && canEdit);
|
|
||||||
boolean showReplyPrivately = chat.isMultiUser() && !messageRecord.isOutgoing() && canReply;
|
boolean showReplyPrivately = chat.isMultiUser() && !messageRecord.isOutgoing() && canReply;
|
||||||
menu.findItem(R.id.menu_context_reply_privately).setVisible(showReplyPrivately);
|
menu.findItem(R.id.menu_context_reply_privately).setVisible(showReplyPrivately);
|
||||||
menu.findItem(R.id.menu_add_to_home_screen).setVisible(messageRecord.getType() == DcMsg.DC_MSG_WEBXDC);
|
menu.findItem(R.id.menu_add_to_home_screen).setVisible(messageRecord.getType() == DcMsg.DC_MSG_WEBXDC);
|
||||||
|
|
|
@ -329,7 +329,7 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity
|
||||||
|
|
||||||
File file = new File(profileImagePath);
|
File file = new File(profileImagePath);
|
||||||
|
|
||||||
if (file.exists()) {
|
if (chatIsEncrypted && file.exists()) {
|
||||||
profileImageUri = Uri.fromFile(file);
|
profileImageUri = Uri.fromFile(file);
|
||||||
String type = "image/" + profileImagePath.substring(profileImagePath.lastIndexOf(".") + 1);
|
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(MediaPreviewActivity.ACTIVITY_TITLE_EXTRA, title);
|
||||||
intent.putExtra( // show edit-button, if the user is allowed to edit the name/avatar
|
intent.putExtra( // show edit-button, if the user is allowed to edit the name/avatar
|
||||||
MediaPreviewActivity.EDIT_AVATAR_CHAT_ID,
|
MediaPreviewActivity.EDIT_AVATAR_CHAT_ID,
|
||||||
(chatIsMultiUser && chatIsEncrypted && !chatIsInBroadcast && !chatIsMailingList) ? chatId : 0
|
(chatIsMultiUser && !chatIsInBroadcast && !chatIsMailingList) ? chatId : 0
|
||||||
);
|
);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
} else if (chatIsMultiUser){
|
} else if (chatIsMultiUser){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue