mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #1311 from deltachat/fix-drafts
Fix #1305 An object (image), "shared" to Delta Chat once, appears again forever in Chat editors until app is closed
This commit is contained in:
@@ -548,9 +548,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
|
||||
if (isRelayingMessageContent(this)) {
|
||||
if (isSharing(this)) {
|
||||
dcContext.setDraft(dcChat.getId(), null);
|
||||
attachmentManager.cleanup();
|
||||
composeText.setText("");
|
||||
}
|
||||
finish();
|
||||
return;
|
||||
@@ -662,6 +660,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
|
||||
private void handleSharing() {
|
||||
ArrayList<Uri> uriList = RelayUtil.getSharedUris(this);
|
||||
RelayUtil.resetRelayingMessageContent(this);
|
||||
if (uriList == null) return;
|
||||
if (uriList.size() > 1) {
|
||||
String message = String.format(getString(R.string.share_multiple_attachments), uriList.size());
|
||||
|
||||
Reference in New Issue
Block a user