|
|
@ -4527,9 +4527,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|
|
|
|
|
|
|
|
|
|
|
// Find recipient
|
|
|
|
// Find recipient
|
|
|
|
InputStream is = null;
|
|
|
|
InputStream is = null;
|
|
|
|
|
|
|
|
if (chain[0].getSerialNumber() != null)
|
|
|
|
for (RecipientInformation recipientInfo : recipients) {
|
|
|
|
for (RecipientInformation recipientInfo : recipients) {
|
|
|
|
KeyTransRecipientId recipientId = (KeyTransRecipientId) recipientInfo.getRID();
|
|
|
|
KeyTransRecipientId recipientId = (KeyTransRecipientId) recipientInfo.getRID();
|
|
|
|
if (recipientId.getSerialNumber().equals(chain[0].getSerialNumber()))
|
|
|
|
if (chain[0].getSerialNumber().equals(recipientId.getSerialNumber()))
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
is = recipientInfo.getContentStream(recipient).getContentStream();
|
|
|
|
is = recipientInfo.getContentStream(recipient).getContentStream();
|
|
|
|
} catch (CMSException ex) {
|
|
|
|
} catch (CMSException ex) {
|
|
|
|