[frontend/components] Disable compose send when it would just be a pure renote
This commit is contained in:
parent
090c8724cc
commit
dad0f3deed
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool SendingDisabled() =>
|
private bool SendingDisabled() =>
|
||||||
NoteLength - ((NoteDraft.Cw?.Length ?? 0) + NoteDraft.Text.Length) < 0 || UploadingFiles != 0 || NoteDraft.Poll != null && PollChoices.Count(p => !string.IsNullOrWhiteSpace(p.Value)) < 2;
|
NoteLength - ((NoteDraft.Cw?.Length ?? 0) + NoteDraft.Text.Length) < 0 || UploadingFiles != 0 || NoteDraft.Poll != null && PollChoices.Count(p => !string.IsNullOrWhiteSpace(p.Value)) < 2 || AttachedQuote != null && string.IsNullOrWhiteSpace(NoteDraft.Cw) && string.IsNullOrWhiteSpace(NoteDraft.Text) && Attachments.Count == 0 && NoteDraft.Poll == null;
|
||||||
|
|
||||||
private async Task HandleKeyDown(KeyboardEventArgs e)
|
private async Task HandleKeyDown(KeyboardEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue