@marcoappio/marco-config 2.0.471 → 2.0.472

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -874,6 +874,28 @@ export declare const marcoZero: {
874
874
  } & {
875
875
  primaryKey: ["accountId", "labelId", "threadMessageId"];
876
876
  };
877
+ readonly threadByLabel: {
878
+ name: "threadByLabel";
879
+ columns: {
880
+ readonly labelId: {
881
+ type: "string";
882
+ optional: false;
883
+ customType: string;
884
+ } & {
885
+ serverName: string;
886
+ };
887
+ readonly threadId: {
888
+ type: "string";
889
+ optional: false;
890
+ customType: string;
891
+ } & {
892
+ serverName: string;
893
+ };
894
+ };
895
+ primaryKey: readonly [string, ...string[]];
896
+ } & {
897
+ primaryKey: ["labelId", "threadId"];
898
+ };
877
899
  readonly threadMessage: {
878
900
  name: "threadMessage";
879
901
  columns: {
@@ -1185,6 +1207,12 @@ export declare const marcoZero: {
1185
1207
  readonly destSchema: "threadMessage";
1186
1208
  readonly cardinality: "many";
1187
1209
  }];
1210
+ threadByLabel: [{
1211
+ readonly sourceField: string[];
1212
+ readonly destField: ("labelId" | "threadId")[];
1213
+ readonly destSchema: "threadByLabel";
1214
+ readonly cardinality: "many";
1215
+ }];
1188
1216
  user: [{
1189
1217
  readonly sourceField: string[];
1190
1218
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -1212,6 +1240,20 @@ export declare const marcoZero: {
1212
1240
  readonly cardinality: "one";
1213
1241
  }];
1214
1242
  };
1243
+ readonly threadByLabel: {
1244
+ label: [{
1245
+ readonly sourceField: string[];
1246
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1247
+ readonly destSchema: "accountLabel";
1248
+ readonly cardinality: "one";
1249
+ }];
1250
+ thread: [{
1251
+ readonly sourceField: string[];
1252
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
1253
+ readonly destSchema: "thread";
1254
+ readonly cardinality: "one";
1255
+ }];
1256
+ };
1215
1257
  readonly threadMessage: {
1216
1258
  attachments: [{
1217
1259
  readonly sourceField: string[];
@@ -1840,6 +1882,28 @@ export declare const marcoZero: {
1840
1882
  } & {
1841
1883
  primaryKey: ["accountId", "labelId", "threadMessageId"];
1842
1884
  };
1885
+ readonly threadByLabel: {
1886
+ name: "threadByLabel";
1887
+ columns: {
1888
+ readonly labelId: {
1889
+ type: "string";
1890
+ optional: false;
1891
+ customType: string;
1892
+ } & {
1893
+ serverName: string;
1894
+ };
1895
+ readonly threadId: {
1896
+ type: "string";
1897
+ optional: false;
1898
+ customType: string;
1899
+ } & {
1900
+ serverName: string;
1901
+ };
1902
+ };
1903
+ primaryKey: readonly [string, ...string[]];
1904
+ } & {
1905
+ primaryKey: ["labelId", "threadId"];
1906
+ };
1843
1907
  readonly threadMessage: {
1844
1908
  name: "threadMessage";
1845
1909
  columns: {
@@ -2151,6 +2215,12 @@ export declare const marcoZero: {
2151
2215
  readonly destSchema: "threadMessage";
2152
2216
  readonly cardinality: "many";
2153
2217
  }];
2218
+ threadByLabel: [{
2219
+ readonly sourceField: string[];
2220
+ readonly destField: ("labelId" | "threadId")[];
2221
+ readonly destSchema: "threadByLabel";
2222
+ readonly cardinality: "many";
2223
+ }];
2154
2224
  user: [{
2155
2225
  readonly sourceField: string[];
2156
2226
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -2178,6 +2248,20 @@ export declare const marcoZero: {
2178
2248
  readonly cardinality: "one";
2179
2249
  }];
2180
2250
  };
2251
+ readonly threadByLabel: {
2252
+ label: [{
2253
+ readonly sourceField: string[];
2254
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
2255
+ readonly destSchema: "accountLabel";
2256
+ readonly cardinality: "one";
2257
+ }];
2258
+ thread: [{
2259
+ readonly sourceField: string[];
2260
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
2261
+ readonly destSchema: "thread";
2262
+ readonly cardinality: "one";
2263
+ }];
2264
+ };
2181
2265
  readonly threadMessage: {
2182
2266
  attachments: [{
2183
2267
  readonly sourceField: string[];
@@ -2772,6 +2856,28 @@ export declare const marcoZero: {
2772
2856
  } & {
2773
2857
  primaryKey: ["accountId", "labelId", "threadMessageId"];
2774
2858
  };
2859
+ readonly threadByLabel: {
2860
+ name: "threadByLabel";
2861
+ columns: {
2862
+ readonly labelId: {
2863
+ type: "string";
2864
+ optional: false;
2865
+ customType: string;
2866
+ } & {
2867
+ serverName: string;
2868
+ };
2869
+ readonly threadId: {
2870
+ type: "string";
2871
+ optional: false;
2872
+ customType: string;
2873
+ } & {
2874
+ serverName: string;
2875
+ };
2876
+ };
2877
+ primaryKey: readonly [string, ...string[]];
2878
+ } & {
2879
+ primaryKey: ["labelId", "threadId"];
2880
+ };
2775
2881
  readonly threadMessage: {
2776
2882
  name: "threadMessage";
2777
2883
  columns: {
@@ -3083,6 +3189,12 @@ export declare const marcoZero: {
3083
3189
  readonly destSchema: "threadMessage";
3084
3190
  readonly cardinality: "many";
3085
3191
  }];
3192
+ threadByLabel: [{
3193
+ readonly sourceField: string[];
3194
+ readonly destField: ("labelId" | "threadId")[];
3195
+ readonly destSchema: "threadByLabel";
3196
+ readonly cardinality: "many";
3197
+ }];
3086
3198
  user: [{
3087
3199
  readonly sourceField: string[];
3088
3200
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -3110,6 +3222,20 @@ export declare const marcoZero: {
3110
3222
  readonly cardinality: "one";
3111
3223
  }];
3112
3224
  };
3225
+ readonly threadByLabel: {
3226
+ label: [{
3227
+ readonly sourceField: string[];
3228
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
3229
+ readonly destSchema: "accountLabel";
3230
+ readonly cardinality: "one";
3231
+ }];
3232
+ thread: [{
3233
+ readonly sourceField: string[];
3234
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
3235
+ readonly destSchema: "thread";
3236
+ readonly cardinality: "one";
3237
+ }];
3238
+ };
3113
3239
  readonly threadMessage: {
3114
3240
  attachments: [{
3115
3241
  readonly sourceField: string[];
@@ -3735,6 +3861,28 @@ export declare const marcoZero: {
3735
3861
  } & {
3736
3862
  primaryKey: ["accountId", "labelId", "threadMessageId"];
3737
3863
  };
3864
+ readonly threadByLabel: {
3865
+ name: "threadByLabel";
3866
+ columns: {
3867
+ readonly labelId: {
3868
+ type: "string";
3869
+ optional: false;
3870
+ customType: string;
3871
+ } & {
3872
+ serverName: string;
3873
+ };
3874
+ readonly threadId: {
3875
+ type: "string";
3876
+ optional: false;
3877
+ customType: string;
3878
+ } & {
3879
+ serverName: string;
3880
+ };
3881
+ };
3882
+ primaryKey: readonly [string, ...string[]];
3883
+ } & {
3884
+ primaryKey: ["labelId", "threadId"];
3885
+ };
3738
3886
  readonly threadMessage: {
3739
3887
  name: "threadMessage";
3740
3888
  columns: {
@@ -4046,6 +4194,12 @@ export declare const marcoZero: {
4046
4194
  readonly destSchema: "threadMessage";
4047
4195
  readonly cardinality: "many";
4048
4196
  }];
4197
+ threadByLabel: [{
4198
+ readonly sourceField: string[];
4199
+ readonly destField: ("labelId" | "threadId")[];
4200
+ readonly destSchema: "threadByLabel";
4201
+ readonly cardinality: "many";
4202
+ }];
4049
4203
  user: [{
4050
4204
  readonly sourceField: string[];
4051
4205
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -4073,6 +4227,20 @@ export declare const marcoZero: {
4073
4227
  readonly cardinality: "one";
4074
4228
  }];
4075
4229
  };
4230
+ readonly threadByLabel: {
4231
+ label: [{
4232
+ readonly sourceField: string[];
4233
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
4234
+ readonly destSchema: "accountLabel";
4235
+ readonly cardinality: "one";
4236
+ }];
4237
+ thread: [{
4238
+ readonly sourceField: string[];
4239
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
4240
+ readonly destSchema: "thread";
4241
+ readonly cardinality: "one";
4242
+ }];
4243
+ };
4076
4244
  readonly threadMessage: {
4077
4245
  attachments: [{
4078
4246
  readonly sourceField: string[];
@@ -4697,6 +4865,28 @@ export declare const marcoZero: {
4697
4865
  } & {
4698
4866
  primaryKey: ["accountId", "labelId", "threadMessageId"];
4699
4867
  };
4868
+ readonly threadByLabel: {
4869
+ name: "threadByLabel";
4870
+ columns: {
4871
+ readonly labelId: {
4872
+ type: "string";
4873
+ optional: false;
4874
+ customType: string;
4875
+ } & {
4876
+ serverName: string;
4877
+ };
4878
+ readonly threadId: {
4879
+ type: "string";
4880
+ optional: false;
4881
+ customType: string;
4882
+ } & {
4883
+ serverName: string;
4884
+ };
4885
+ };
4886
+ primaryKey: readonly [string, ...string[]];
4887
+ } & {
4888
+ primaryKey: ["labelId", "threadId"];
4889
+ };
4700
4890
  readonly threadMessage: {
4701
4891
  name: "threadMessage";
4702
4892
  columns: {
@@ -5008,6 +5198,12 @@ export declare const marcoZero: {
5008
5198
  readonly destSchema: "threadMessage";
5009
5199
  readonly cardinality: "many";
5010
5200
  }];
5201
+ threadByLabel: [{
5202
+ readonly sourceField: string[];
5203
+ readonly destField: ("labelId" | "threadId")[];
5204
+ readonly destSchema: "threadByLabel";
5205
+ readonly cardinality: "many";
5206
+ }];
5011
5207
  user: [{
5012
5208
  readonly sourceField: string[];
5013
5209
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -5035,6 +5231,20 @@ export declare const marcoZero: {
5035
5231
  readonly cardinality: "one";
5036
5232
  }];
5037
5233
  };
5234
+ readonly threadByLabel: {
5235
+ label: [{
5236
+ readonly sourceField: string[];
5237
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
5238
+ readonly destSchema: "accountLabel";
5239
+ readonly cardinality: "one";
5240
+ }];
5241
+ thread: [{
5242
+ readonly sourceField: string[];
5243
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
5244
+ readonly destSchema: "thread";
5245
+ readonly cardinality: "one";
5246
+ }];
5247
+ };
5038
5248
  readonly threadMessage: {
5039
5249
  attachments: [{
5040
5250
  readonly sourceField: string[];
@@ -5656,6 +5866,28 @@ export declare const marcoZero: {
5656
5866
  } & {
5657
5867
  primaryKey: ["accountId", "labelId", "threadMessageId"];
5658
5868
  };
5869
+ readonly threadByLabel: {
5870
+ name: "threadByLabel";
5871
+ columns: {
5872
+ readonly labelId: {
5873
+ type: "string";
5874
+ optional: false;
5875
+ customType: string;
5876
+ } & {
5877
+ serverName: string;
5878
+ };
5879
+ readonly threadId: {
5880
+ type: "string";
5881
+ optional: false;
5882
+ customType: string;
5883
+ } & {
5884
+ serverName: string;
5885
+ };
5886
+ };
5887
+ primaryKey: readonly [string, ...string[]];
5888
+ } & {
5889
+ primaryKey: ["labelId", "threadId"];
5890
+ };
5659
5891
  readonly threadMessage: {
5660
5892
  name: "threadMessage";
5661
5893
  columns: {
@@ -5967,6 +6199,12 @@ export declare const marcoZero: {
5967
6199
  readonly destSchema: "threadMessage";
5968
6200
  readonly cardinality: "many";
5969
6201
  }];
6202
+ threadByLabel: [{
6203
+ readonly sourceField: string[];
6204
+ readonly destField: ("labelId" | "threadId")[];
6205
+ readonly destSchema: "threadByLabel";
6206
+ readonly cardinality: "many";
6207
+ }];
5970
6208
  user: [{
5971
6209
  readonly sourceField: string[];
5972
6210
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -5994,6 +6232,20 @@ export declare const marcoZero: {
5994
6232
  readonly cardinality: "one";
5995
6233
  }];
5996
6234
  };
6235
+ readonly threadByLabel: {
6236
+ label: [{
6237
+ readonly sourceField: string[];
6238
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
6239
+ readonly destSchema: "accountLabel";
6240
+ readonly cardinality: "one";
6241
+ }];
6242
+ thread: [{
6243
+ readonly sourceField: string[];
6244
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
6245
+ readonly destSchema: "thread";
6246
+ readonly cardinality: "one";
6247
+ }];
6248
+ };
5997
6249
  readonly threadMessage: {
5998
6250
  attachments: [{
5999
6251
  readonly sourceField: string[];
@@ -6629,6 +6881,28 @@ export declare const marcoZero: {
6629
6881
  } & {
6630
6882
  primaryKey: ["accountId", "labelId", "threadMessageId"];
6631
6883
  };
6884
+ readonly threadByLabel: {
6885
+ name: "threadByLabel";
6886
+ columns: {
6887
+ readonly labelId: {
6888
+ type: "string";
6889
+ optional: false;
6890
+ customType: string;
6891
+ } & {
6892
+ serverName: string;
6893
+ };
6894
+ readonly threadId: {
6895
+ type: "string";
6896
+ optional: false;
6897
+ customType: string;
6898
+ } & {
6899
+ serverName: string;
6900
+ };
6901
+ };
6902
+ primaryKey: readonly [string, ...string[]];
6903
+ } & {
6904
+ primaryKey: ["labelId", "threadId"];
6905
+ };
6632
6906
  readonly threadMessage: {
6633
6907
  name: "threadMessage";
6634
6908
  columns: {
@@ -6940,6 +7214,12 @@ export declare const marcoZero: {
6940
7214
  readonly destSchema: "threadMessage";
6941
7215
  readonly cardinality: "many";
6942
7216
  }];
7217
+ threadByLabel: [{
7218
+ readonly sourceField: string[];
7219
+ readonly destField: ("labelId" | "threadId")[];
7220
+ readonly destSchema: "threadByLabel";
7221
+ readonly cardinality: "many";
7222
+ }];
6943
7223
  user: [{
6944
7224
  readonly sourceField: string[];
6945
7225
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -6967,6 +7247,20 @@ export declare const marcoZero: {
6967
7247
  readonly cardinality: "one";
6968
7248
  }];
6969
7249
  };
7250
+ readonly threadByLabel: {
7251
+ label: [{
7252
+ readonly sourceField: string[];
7253
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
7254
+ readonly destSchema: "accountLabel";
7255
+ readonly cardinality: "one";
7256
+ }];
7257
+ thread: [{
7258
+ readonly sourceField: string[];
7259
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
7260
+ readonly destSchema: "thread";
7261
+ readonly cardinality: "one";
7262
+ }];
7263
+ };
6970
7264
  readonly threadMessage: {
6971
7265
  attachments: [{
6972
7266
  readonly sourceField: string[];
@@ -7428,6 +7722,28 @@ export declare const marcoZero: {
7428
7722
  } & {
7429
7723
  primaryKey: ["id"];
7430
7724
  }>;
7725
+ readonly threadByLabel: import("@rocicorp/zero").TableBuilderWithColumns<{
7726
+ name: "threadByLabel";
7727
+ columns: {
7728
+ readonly labelId: {
7729
+ type: "string";
7730
+ optional: false;
7731
+ customType: string;
7732
+ } & {
7733
+ serverName: string;
7734
+ };
7735
+ readonly threadId: {
7736
+ type: "string";
7737
+ optional: false;
7738
+ customType: string;
7739
+ } & {
7740
+ serverName: string;
7741
+ };
7742
+ };
7743
+ primaryKey: readonly [string, ...string[]];
7744
+ } & {
7745
+ primaryKey: ["labelId", "threadId"];
7746
+ }>;
7431
7747
  readonly threadLabel: import("@rocicorp/zero").TableBuilderWithColumns<{
7432
7748
  name: "threadLabel";
7433
7749
  columns: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,IAAI,CAAC;CACnB,CAAA;AAKD,eAAO,MAAM,cAAc,OACrB,WAAW,CAAC,eAAe,CAAC,YACtB,MAAM,oBACE,eAAe,KAChC,OAAO,CAAC,kBAAkB,EAAE,CAyG9B,CAAA;AAED,eAAO,MAAM,oBAAoB,cACpB,QAAQ,GAAG,SAAS,cACnB,sBAAsB,KACjC,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CA8OxC,CAAA"}
@@ -17,6 +17,7 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
17
17
  const threadLabels = await tx.query.threadLabel.where('threadId', threadId).run();
18
18
  const sourceLocations = [];
19
19
  const labelsToDelete = [];
20
+ const labelIdsToRemove = new Set();
20
21
  let hasTarget = false;
21
22
  for (const label of threadLabels) {
22
23
  if (label.labelId === targetLabel.id) {
@@ -24,6 +25,7 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
24
25
  continue;
25
26
  }
26
27
  labelsToDelete.push(label);
28
+ labelIdsToRemove.add(label.labelId);
27
29
  if (label.uid > 0 && label.uidValidity > 0) {
28
30
  sourceLocations.push({
29
31
  labelId: label.labelId,
@@ -40,6 +42,21 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
40
42
  threadMessageId: label.threadMessageId,
41
43
  });
42
44
  }
45
+ for (const labelId of labelIdsToRemove) {
46
+ await tx.mutate.threadByLabel.delete({
47
+ labelId,
48
+ threadId,
49
+ });
50
+ }
51
+ if (thread.seen === false && labelIdsToRemove.size > 0) {
52
+ const labelsToUpdate = await tx.query.accountLabel.where('id', 'IN', [...labelIdsToRemove]).run();
53
+ for (const label of labelsToUpdate) {
54
+ await tx.mutate.accountLabel.update({
55
+ id: label.id,
56
+ unreadCount: Math.max(0, (label.unreadCount ?? 0) - 1),
57
+ });
58
+ }
59
+ }
43
60
  if (!hasTarget) {
44
61
  const messages = await tx.query.threadMessage.where('threadId', threadId).run();
45
62
  const baseTimestamp = Date.now();
@@ -55,6 +72,16 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
55
72
  uidValidity: targetLabel.uidValidity ?? 0,
56
73
  });
57
74
  }
75
+ await tx.mutate.threadByLabel.insert({
76
+ labelId: targetLabel.id,
77
+ threadId,
78
+ });
79
+ if (thread.seen === false) {
80
+ await tx.mutate.accountLabel.update({
81
+ id: targetLabel.id,
82
+ unreadCount: (targetLabel.unreadCount ?? 0) + 1,
83
+ });
84
+ }
58
85
  }
59
86
  await tx.mutate.thread.update({
60
87
  id: threadId,
@@ -77,6 +104,23 @@ export const createThreadMutators = (_authData, callbacks) => ({
77
104
  if (!label) {
78
105
  throw new Error(MutationError.ENTITY_NOT_FOUND);
79
106
  }
107
+ const existingThreadByLabel = await tx.query.threadByLabel
108
+ .where('labelId', label.id)
109
+ .where('threadId', threadId)
110
+ .one()
111
+ .run();
112
+ if (!existingThreadByLabel) {
113
+ await tx.mutate.threadByLabel.insert({
114
+ labelId: label.id,
115
+ threadId,
116
+ });
117
+ if (thread.seen === false) {
118
+ await tx.mutate.accountLabel.update({
119
+ id: label.id,
120
+ unreadCount: (label.unreadCount ?? 0) + 1,
121
+ });
122
+ }
123
+ }
80
124
  const messages = await tx.query.threadMessage.where('threadId', threadId).run();
81
125
  const baseTimestamp = Date.now();
82
126
  let insertIndex = 0;
@@ -149,6 +193,16 @@ export const createThreadMutators = (_authData, callbacks) => ({
149
193
  threadMessageId: existing.threadMessageId,
150
194
  });
151
195
  }
196
+ await tx.mutate.threadByLabel.delete({
197
+ labelId: label.id,
198
+ threadId,
199
+ });
200
+ if (thread.seen === false) {
201
+ await tx.mutate.accountLabel.update({
202
+ id: label.id,
203
+ unreadCount: Math.max(0, (label.unreadCount ?? 0) - 1),
204
+ });
205
+ }
152
206
  const remainingLabels = await tx.query.threadLabel.where('threadId', threadId).run();
153
207
  await tx.mutate.thread.update({
154
208
  id: threadId,
@@ -186,8 +240,10 @@ export const createThreadMutators = (_authData, callbacks) => ({
186
240
  const threads = await tx.query.thread.where('id', 'IN', args.threadIds).run();
187
241
  const labelCounts = new Map();
188
242
  for (const thread of threads) {
189
- for (const labelId of threadsUtils.parseLabelIdList(thread.labelIdList)) {
190
- labelCounts.set(labelId, (labelCounts.get(labelId) ?? 0) + 1);
243
+ if (thread.seen !== args.seen) {
244
+ for (const labelId of threadsUtils.parseLabelIdList(thread.labelIdList)) {
245
+ labelCounts.set(labelId, (labelCounts.get(labelId) ?? 0) + 1);
246
+ }
191
247
  }
192
248
  }
193
249
  if (labelCounts.size > 0) {