mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-14 18:00:28 +00:00
Fix channel sync and logging
This commit is contained in:
@@ -246,6 +246,17 @@ class MessagesProvider with ChangeNotifier {
|
||||
)
|
||||
.length;
|
||||
|
||||
int getUnreadCountForChannel(int channelIdx) => _messages
|
||||
.where(
|
||||
(message) =>
|
||||
message.isChannelMessage &&
|
||||
(message.channelIdx ?? 0) == channelIdx &&
|
||||
!message.isRead &&
|
||||
!message.isSentMessage &&
|
||||
!message.isSystemMessage,
|
||||
)
|
||||
.length;
|
||||
|
||||
bool _isMessageForDestination(Message message, Contact contact) {
|
||||
if (message.isSystemMessage) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user