File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/src/main/java/org/thoughtcrime/securesms Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1426,7 +1426,7 @@ class ConversationViewModel(
1426
1426
fun onTextChanged (text : CharSequence ) {
1427
1427
// check the character limit
1428
1428
val maxChars = proStatusManager.getCharacterLimit()
1429
- val charsLeft = maxChars - text.length
1429
+ val charsLeft = maxChars - text.toString().toByteArray( Charsets . UTF_8 ).size // using utf-8 to match libsession and iOS
1430
1430
1431
1431
// update the char limit state based on characters left
1432
1432
val charLimitState = if (charsLeft <= CHARACTER_LIMIT_THRESHOLD ){
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ fun Modifier.verticalScrollbar(
201
201
*/
202
202
fun Modifier.shimmerOverlay (
203
203
color : Color = Color .White .copy(alpha = 0.0f),
204
- highlightColor : Color = Color .White .copy(alpha = 0.6f ),
204
+ highlightColor : Color = Color .White .copy(alpha = 0.4f ),
205
205
animationDuration : Int = 1200,
206
206
delayBetweenCycles : Int = 3000,
207
207
initialDelay : Int = 0
You can’t perform that action at this time.
0 commit comments