Merge branch 'master' into develop
This commit is contained in:
commit
1f066782dc
|
@ -1544,7 +1544,7 @@ class ComposeActivity : BaseActivity(), OnMenuItemClickListener, OnClickListener
|
||||||
val (replyStartIndex, replyText, _, excludedMentions, replyToOriginalUser) =
|
val (replyStartIndex, replyText, _, excludedMentions, replyToOriginalUser) =
|
||||||
replyTextAndMentions
|
replyTextAndMentions
|
||||||
if (replyText.isEmpty() && media.isEmpty()) throw NoContentException()
|
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) {
|
if (checkLength && !statusShortenerUsed && maxLength > 0 && totalLength > maxLength) {
|
||||||
val summaryLength = StatusTextValidator.calculateSummaryLength(accounts, summary)
|
val summaryLength = StatusTextValidator.calculateSummaryLength(accounts, summary)
|
||||||
if (summary != null && summaryLength > maxLength) {
|
if (summary != null && summaryLength > maxLength) {
|
||||||
|
|
Loading…
Reference in New Issue