Skip to content

Commit 14951bb

Browse files
committed
Empty unread count now returns 0 instead of -1
1 parent 40ca737 commit 14951bb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

gmail.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ var Gmail = function() {
136136
}
137137

138138

139+
// TODO: Check if this is still useful
139140
api.get.email_ids = function () {
140141
var items = api.dom.email_contents();
141142
var ids = [];
@@ -231,7 +232,7 @@ var Gmail = function() {
231232
}
232233
}
233234

234-
return -1;
235+
return 0;
235236
}
236237

237238

@@ -244,7 +245,7 @@ var Gmail = function() {
244245
}
245246
}
246247

247-
return -1;
248+
return 0;
248249
}
249250

250251

@@ -257,7 +258,7 @@ var Gmail = function() {
257258
}
258259
}
259260

260-
return -1;
261+
return 0;
261262
}
262263

263264

@@ -270,7 +271,7 @@ var Gmail = function() {
270271
}
271272
}
272273

273-
return -1;
274+
return 0;
274275
}
275276

276277

@@ -283,7 +284,7 @@ var Gmail = function() {
283284
}
284285
}
285286

286-
return -1;
287+
return 0;
287288
}
288289

289290

@@ -296,7 +297,7 @@ var Gmail = function() {
296297
}
297298
}
298299

299-
return -1;
300+
return 0;
300301
}
301302

302303

@@ -309,7 +310,7 @@ var Gmail = function() {
309310
}
310311
}
311312

312-
return -1;
313+
return 0;
313314
}
314315

315316

0 commit comments

Comments
 (0)