Line 0
Link Here
|
|
|
1 |
--- src/engine/imap-db/imap-db-folder.vala.orig 2015-03-30 21:47:50 UTC |
2 |
+++ src/engine/imap-db/imap-db-folder.vala |
3 |
@@ -876,9 +876,9 @@ private class Geary.ImapDB.Folder : BaseObject, Geary. |
4 |
unread_updated(unread_status); |
5 |
} |
6 |
|
7 |
- public async Gee.Map<ImapDB.EmailIdentifier, Geary.EmailFlags>? get_email_flags_async( |
8 |
- Gee.Collection<ImapDB.EmailIdentifier> ids, Cancellable? cancellable) throws Error { |
9 |
- Gee.Map<ImapDB.EmailIdentifier, Geary.EmailFlags>? map = null; |
10 |
+ internal async Gee.Map<ImapDB.EmailIdentifier, Geary.EmailFlags>? get_email_flags_async( |
11 |
+ Gee.Collection<EmailIdentifier> ids, Cancellable? cancellable) throws Error { |
12 |
+ Gee.Map<EmailIdentifier, Geary.EmailFlags>? map = null; |
13 |
yield db.exec_transaction_async(Db.TransactionType.RO, (cx, cancellable) => { |
14 |
map = do_get_email_flags(cx, ids, cancellable); |
15 |
|
16 |
@@ -1090,11 +1090,11 @@ private class Geary.ImapDB.Folder : BaseObject, Geary. |
17 |
if (ids.size == 0) |
18 |
return null; |
19 |
|
20 |
- Gee.HashMap<Geary.EmailIdentifier, Geary.Email.Field> map = new Gee.HashMap< |
21 |
- Geary.EmailIdentifier, Geary.Email.Field>(); |
22 |
+ Gee.HashMap<ImapDB.EmailIdentifier, Geary.Email.Field> map = new Gee.HashMap< |
23 |
+ ImapDB.EmailIdentifier, Geary.Email.Field>(); |
24 |
|
25 |
// Break up the work |
26 |
- Gee.List<ImapDB.EmailIdentifier> list = new Gee.ArrayList<Geary.EmailIdentifier>(); |
27 |
+ Gee.List<ImapDB.EmailIdentifier> list = new Gee.ArrayList<ImapDB.EmailIdentifier>(); |
28 |
Gee.Iterator<ImapDB.EmailIdentifier> iter = ids.iterator(); |
29 |
while (iter.next()) { |
30 |
list.add(iter.get()); |
31 |
@@ -1581,7 +1581,7 @@ private class Geary.ImapDB.Folder : BaseObject, Geary. |
32 |
Db.Statement fetch_stmt = cx.prepare("SELECT flags FROM MessageTable WHERE id=?"); |
33 |
|
34 |
Gee.Map<ImapDB.EmailIdentifier, Geary.EmailFlags> map = new Gee.HashMap< |
35 |
- Geary.EmailIdentifier, Geary.EmailFlags>(); |
36 |
+ ImapDB.EmailIdentifier, Geary.EmailFlags>(); |
37 |
// TODO: Unroll this loop |
38 |
foreach (LocationIdentifier location in locs) { |
39 |
fetch_stmt.reset(Db.ResetScope.CLEAR_BINDINGS); |