Refactor unread message tracking and implement channel caching (#126)
* Refactor unread message tracking and implement channel caching * formatted files
This commit is contained in:
1 parent
b3645481c7
commit
c320378be1
7 files changed
+243
-179
No files matched your search
@@ -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