From e6a468c06584e1e52038292f7b1e971f9e951e76 Mon Sep 17 00:00:00 2001 From: otsmr Date: Thu, 7 May 2026 00:24:01 +0200 Subject: [PATCH] fix: update sendCounter also for groups --- lib/src/services/flame.service.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/services/flame.service.dart b/lib/src/services/flame.service.dart index 8824ac7f..75c40db8 100644 --- a/lib/src/services/flame.service.dart +++ b/lib/src/services/flame.service.dart @@ -100,9 +100,9 @@ Future incFlameCounter( final contacts = await twonlyDB.groupsDao.getGroupContact( group.groupId, ); - if (contacts.length == 1) { + for (final contact in contacts) { await twonlyDB.contactsDao.updateContact( - contacts.first.userId, + contact.userId, ContactsCompanion( mediaReceivedCounter: Value( contacts.first.mediaReceivedCounter + (received ? 1 : 0),