mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-14 22:55:12 +10:00
Refactor unread message tracking and implement channel caching (#126)
* Refactor unread message tracking and implement channel caching * formatted files
This commit is contained in:
@@ -9,8 +9,14 @@ class Channel {
|
||||
final int index;
|
||||
final String name;
|
||||
final Uint8List psk; // 16 bytes
|
||||
int unreadCount;
|
||||
|
||||
Channel({required this.index, required this.name, required this.psk});
|
||||
Channel({
|
||||
required this.index,
|
||||
required this.name,
|
||||
required this.psk,
|
||||
this.unreadCount = 0,
|
||||
});
|
||||
|
||||
String get pskHex => _bytesToHex(psk);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user