mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 07:08:33 +00:00
Fix issue where you could send text with a view-once message.
This commit is contained in:
parent
8cb6ed26a1
commit
4adacf4b98
@ -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!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user