Add dedicated Add Contact page with manual public key entry
Replace the Contacts add-contact modal sheet and separate menu shortcuts with a unified Add Contact screen supporting manual type/name/public-key entry, clipboard import (meshcore:// URIs, share tokens, and bare 64-hex keys), discovered contacts, and QR scanning.
This commit is contained in:
1 parent
3a93481bdf
commit
f45b511bcb
35 files changed
+2315
-188
No files matched your search
@@ -84,6 +84,7 @@ class ReviewFrames {
|
||||
required Uint8List publicKey,
|
||||
required int type,
|
||||
required Uint8List path,
|
||||
int? pathLen,
|
||||
required String name,
|
||||
required int lastAdvertSecs,
|
||||
required int latitudeE6,
|
||||
@@ -96,7 +97,9 @@ class ReviewFrames {
|
||||
writer.writeBytes(publicKey);
|
||||
writer.writeByte(type);
|
||||
writer.writeByte(flags);
|
||||
writer.writeByte(path.length); // one-byte hashes: hop count == byte count
|
||||
writer.writeByte(
|
||||
pathLen ?? path.length,
|
||||
); // one-byte hashes: hop count == byte count
|
||||
writer.writeBytesPadded(path, maxPathSize);
|
||||
writer.writeCString(name, maxNameSize);
|
||||
writer.writeUInt32LE(lastAdvertSecs);
|
||||
|
||||
Reference in new issue
Block a user