mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-03 18:17:37 +01:00
fixed #1018
This commit is contained in:
parent
d11197c879
commit
cc6eafd8a3
@ -1560,7 +1560,7 @@ class ComposeActivity : BaseActivity(), OnMenuItemClickListener, OnClickListener
|
||||
val (replyStartIndex, replyText, _, excludedMentions, replyToOriginalUser) =
|
||||
replyTextAndMentions
|
||||
if (replyText.isEmpty() && media.isEmpty()) throw NoContentException()
|
||||
val totalLength = StatusTextValidator.calculateLength(accounts, summary, text)
|
||||
val totalLength = StatusTextValidator.calculateLength(accounts, summary, replyText)
|
||||
if (checkLength && !statusShortenerUsed && maxLength > 0 && totalLength > maxLength) {
|
||||
val summaryLength = StatusTextValidator.calculateSummaryLength(accounts, summary)
|
||||
if (summary != null && summaryLength > maxLength) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user