From c7066c07969080d666a947766708fbdd96459402 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Mon, 2 Jul 2018 08:56:11 -0700 Subject: [PATCH] Cast to MmsMessageRecord in ConversationFragment#handleForwardMessage. Was causing a crash for MMS messages. Fixes #7951 --- src/org/thoughtcrime/securesms/ConversationFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/ConversationFragment.java b/src/org/thoughtcrime/securesms/ConversationFragment.java index 6361353488..39d04862b5 100644 --- a/src/org/thoughtcrime/securesms/ConversationFragment.java +++ b/src/org/thoughtcrime/securesms/ConversationFragment.java @@ -399,7 +399,7 @@ public class ConversationFragment extends Fragment Intent composeIntent = new Intent(getActivity(), ShareActivity.class); composeIntent.putExtra(Intent.EXTRA_TEXT, message.getDisplayBody().toString()); if (message.isMms()) { - MediaMmsMessageRecord mediaMessage = (MediaMmsMessageRecord) message; + MmsMessageRecord mediaMessage = (MmsMessageRecord) message; if (mediaMessage.containsMediaSlide()) { Slide slide = mediaMessage.getSlideDeck().getSlides().get(0); composeIntent.putExtra(Intent.EXTRA_STREAM, slide.getUri());