Skip to content

Strip leading/trailing whitespace from messages

Briar Android seems to strip whitespace from messages, even if the actual messages contains whitespace. To reproduce:

  • send a message from Briar Desktop with trailing whitespace/newlines
  • see how the whitespace gets stripped in Briar Android, it's not visible in the received message
  • see how the whitespace is displayed in Briar Desktop

When sending trailing whitespace from Briar Android, it seems to strip that, because the received message on Briar Desktop no more contains the whitespace.