mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00: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
@ -399,7 +399,7 @@ public class ConversationFragment extends Fragment
|
|||||||
Intent composeIntent = new Intent(getActivity(), ShareActivity.class);
|
Intent composeIntent = new Intent(getActivity(), ShareActivity.class);
|
||||||
composeIntent.putExtra(Intent.EXTRA_TEXT, message.getDisplayBody().toString());
|
composeIntent.putExtra(Intent.EXTRA_TEXT, message.getDisplayBody().toString());
|
||||||
if (message.isMms()) {
|
if (message.isMms()) {
|
||||||
MediaMmsMessageRecord mediaMessage = (MediaMmsMessageRecord) message;
|
MmsMessageRecord mediaMessage = (MmsMessageRecord) message;
|
||||||
if (mediaMessage.containsMediaSlide()) {
|
if (mediaMessage.containsMediaSlide()) {
|
||||||
Slide slide = mediaMessage.getSlideDeck().getSlides().get(0);
|
Slide slide = mediaMessage.getSlideDeck().getSlides().get(0);
|
||||||
composeIntent.putExtra(Intent.EXTRA_STREAM, slide.getUri());
|
composeIntent.putExtra(Intent.EXTRA_STREAM, slide.getUri());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user