forked from upstream-mirrors/quik
Use longer sms length when not using diacritics (#1291)
This commit is contained in:
@@ -528,7 +528,7 @@ class ComposeViewModel @Inject constructor(
|
|||||||
// Show the remaining character counter when necessary
|
// Show the remaining character counter when necessary
|
||||||
view.textChangedIntent
|
view.textChangedIntent
|
||||||
.observeOn(Schedulers.computation())
|
.observeOn(Schedulers.computation())
|
||||||
.mapNotNull { draft -> tryOrNull { SmsMessage.calculateLength(draft, false) } }
|
.mapNotNull { draft -> tryOrNull { SmsMessage.calculateLength(draft, prefs.unicode.get()) } }
|
||||||
.map { array ->
|
.map { array ->
|
||||||
val messages = array[0]
|
val messages = array[0]
|
||||||
val remaining = array[2]
|
val remaining = array[2]
|
||||||
|
|||||||
Reference in New Issue
Block a user