mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-16 19:18:52 +01:00
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
|
||||
view.textChangedIntent
|
||||
.observeOn(Schedulers.computation())
|
||||
.mapNotNull { draft -> tryOrNull { SmsMessage.calculateLength(draft, false) } }
|
||||
.mapNotNull { draft -> tryOrNull { SmsMessage.calculateLength(draft, prefs.unicode.get()) } }
|
||||
.map { array ->
|
||||
val messages = array[0]
|
||||
val remaining = array[2]
|
||||
|
||||
Reference in New Issue
Block a user