mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-05-25 10:32:13 +00:00
fix: update sendCounter also for groups
Some checks failed
Flutter analyze & test / flutter_analyze_and_test (push) Has been cancelled
Some checks failed
Flutter analyze & test / flutter_analyze_and_test (push) Has been cancelled
This commit is contained in:
parent
149478df11
commit
e6a468c065
1 changed files with 2 additions and 2 deletions
|
|
@ -100,9 +100,9 @@ Future<void> incFlameCounter(
|
||||||
final contacts = await twonlyDB.groupsDao.getGroupContact(
|
final contacts = await twonlyDB.groupsDao.getGroupContact(
|
||||||
group.groupId,
|
group.groupId,
|
||||||
);
|
);
|
||||||
if (contacts.length == 1) {
|
for (final contact in contacts) {
|
||||||
await twonlyDB.contactsDao.updateContact(
|
await twonlyDB.contactsDao.updateContact(
|
||||||
contacts.first.userId,
|
contact.userId,
|
||||||
ContactsCompanion(
|
ContactsCompanion(
|
||||||
mediaReceivedCounter: Value(
|
mediaReceivedCounter: Value(
|
||||||
contacts.first.mediaReceivedCounter + (received ? 1 : 0),
|
contacts.first.mediaReceivedCounter + (received ? 1 : 0),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue