mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Merge pull request #103 from meshtastic/hotfix/check_keyboard_bytes_less
Fix byte count on screen
This commit is contained in:
commit
882b0c3d88
1 changed files with 2 additions and 2 deletions
|
|
@ -352,10 +352,10 @@ struct UserMessageList: View {
|
|||
TextEditor(text: $typingMessage)
|
||||
.onChange(of: typingMessage, perform: { value in
|
||||
|
||||
let size = typingMessage.utf8.count
|
||||
totalBytes = typingMessage.utf8.count
|
||||
|
||||
// Only mess with the value if it is too big
|
||||
if size > maxbytes {
|
||||
if totalBytes > maxbytes {
|
||||
|
||||
let firstNBytes = Data(typingMessage.utf8.prefix(maxbytes))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue