mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 23:47:26 +00:00
Fix issue where you could send text with a view-once message.
This commit is contained in:
@@ -543,7 +543,8 @@ public class MediaSendActivity extends PassphraseRequiredActionBarActivity imple
|
||||
|
||||
if (fragment != null) {
|
||||
processMedia(fragment.getAllMedia(), fragment.getSavedState(), processedMedia -> {
|
||||
sendMessages(recipients, processedMedia, composeText.getTextTrimmed(), transport);
|
||||
String body = viewModel.isViewOnce() ? "" : composeText.getTextTrimmed();
|
||||
sendMessages(recipients, processedMedia, body, transport);
|
||||
});
|
||||
} else {
|
||||
throw new AssertionError("No editor fragment available!");
|
||||
|
Reference in New Issue
Block a user