Skip to content

Commit

Permalink
Change max message length to 200 (#1429)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifieldt authored Nov 25, 2024
1 parent c4b07af commit 65d832e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/geeksville/mesh/ui/MessagesFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ class MessagesFragment : Fragment(), Logging {
sendMessageInputText()
}

// max payload length should be 237 bytes but anything over 235 bytes crashes the radio
binding.messageInputText.filters += Utf8ByteLengthFilter(234)
// max payload length should be 237 bytes but anything over 200 becomes less reliable
binding.messageInputText.filters += Utf8ByteLengthFilter(200)

binding.messageListView.setContent {
val messages by model.getMessagesFrom(contactKey).collectAsStateWithLifecycle(listOf())
Expand Down
2 changes: 1 addition & 1 deletion config/detekt/detekt-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
<ID>MagicNumber:MeshService.kt$MeshService$32</ID>
<ID>MagicNumber:MeshService.kt$MeshService$60000</ID>
<ID>MagicNumber:MeshService.kt$MeshService$8</ID>
<ID>MagicNumber:MessagesFragment.kt$MessagesFragment$234</ID>
<ID>MagicNumber:MessagesFragment.kt$MessagesFragment$200</ID>
<ID>MagicNumber:MetricsViewModel.kt$MetricsViewModel$1000L</ID>
<ID>MagicNumber:MetricsViewModel.kt$MetricsViewModel$1e-5</ID>
<ID>MagicNumber:MetricsViewModel.kt$MetricsViewModel$1e-7</ID>
Expand Down

0 comments on commit 65d832e

Please sign in to comment.