mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-25 21:16:40 +10:00
Update lib/models/contact.dart
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -160,6 +160,7 @@ class Contact {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Contact? fromFrame(Uint8List data) {
|
static Contact? fromFrame(Uint8List data) {
|
||||||
|
if (data.isEmpty) return null;
|
||||||
if (data[0] != respCodeContact) return null;
|
if (data[0] != respCodeContact) return null;
|
||||||
try {
|
try {
|
||||||
final pubKey = Uint8List.fromList(
|
final pubKey = Uint8List.fromList(
|
||||||
|
|||||||
Reference in New Issue
Block a user