Refactor unread message tracking and implement channel caching (#126)

* Refactor unread message tracking and implement channel caching

* formatted files
This commit is contained in:
zjs81
2026-02-04 20:34:03 -07:00
committed by GitHub
parent b3645481c7
commit c320378be1
7 changed files with 243 additions and 179 deletions
+7 -1
View File
@@ -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);