Pass correct address from media overview to preview

Fixes #7384
Closes #7387
This commit is contained in:
FeuRenard 2018-02-03 12:26:59 +01:00 committed by Moxie Marlinspike
parent 3f3d7f549b
commit 404610fbcd

View File

@ -294,10 +294,6 @@ public class MediaOverviewActivity extends PassphraseRequiredActionBarActivity
intent.putExtra(MediaPreviewActivity.OUTGOING_EXTRA, mediaRecord.isOutgoing());
intent.putExtra(MediaPreviewActivity.LEFT_IS_RECENT_EXTRA, true);
if (mediaRecord.getAddress() != null) {
intent.putExtra(MediaPreviewActivity.ADDRESS_EXTRA, mediaRecord.getAddress());
}
intent.setDataAndType(mediaRecord.getAttachment().getDataUri(), mediaRecord.getContentType());
context.startActivity(intent);
}