mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
Cast to MmsMessageRecord in ConversationFragment#handleForwardMessage.
Was causing a crash for MMS messages. Fixes #7951
This commit is contained in:
parent
69ea116b2b
commit
c7066c0796
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue