mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 10:25:19 +00:00
temporary
This commit is contained in:
@@ -80,6 +80,8 @@ data class BitchatPacket(
|
||||
var ttl: UByte
|
||||
) : Parcelable {
|
||||
|
||||
// Secondary constructor removed to enforce ByteArray usage for peerIDs
|
||||
/*
|
||||
constructor(
|
||||
type: UByte,
|
||||
ttl: UByte,
|
||||
@@ -95,6 +97,7 @@ data class BitchatPacket(
|
||||
signature = null,
|
||||
ttl = ttl
|
||||
)
|
||||
*/
|
||||
|
||||
fun toBinaryData(): ByteArray? {
|
||||
return BinaryProtocol.encode(this)
|
||||
|
||||
Reference in New Issue
Block a user