fix: parsing StoreAndForward text messages

This commit is contained in:
andrekir 2024-02-25 07:42:22 -03:00
parent 2de49c143b
commit 570a26b413

View file

@ -830,7 +830,10 @@ class MeshService : Service(), Logging {
if (s.rr == StoreAndForwardProtos.StoreAndForward.RequestResponse.ROUTER_TEXT_BROADCAST) {
dataPacket.to = DataPacket.ID_BROADCAST
}
val u = dataPacket.copy(dataType = Portnums.PortNum.TEXT_MESSAGE_APP_VALUE)
val u = dataPacket.copy(
bytes = s.text.toByteArray(),
dataType = Portnums.PortNum.TEXT_MESSAGE_APP_VALUE,
)
rememberDataPacket(u)
updateMessageNotification(u)
}