Skip to content

Commit

Permalink
Added thread data to FETCH command (#786)
Browse files Browse the repository at this point in the history
* Added thread data to FETCH command

* Added missing thread projection
  • Loading branch information
jissepo authored Feb 18, 2025
1 parent 8ff3925 commit 7ed7343
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/api/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -3069,7 +3069,8 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
returnDocument: 'after',
projection: {
uid: true,
flags: true
flags: true,
thread: true,
}
}
);
Expand Down
1 change: 1 addition & 0 deletions lib/handlers/on-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module.exports = (server, messageHandler, userCache) => (mailbox, options, sessi
let projection = {
_id: true,
uid: true,
thread: true,
modseq: true
};

Expand Down
1 change: 1 addition & 0 deletions lib/handlers/on-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ module.exports = server => (mailbox, update, session, callback) => {
_id: true,
uid: true,
flags: true,
thread: true,
modseq: true
})
.maxTimeMS(consts.DB_MAX_TIME_MESSAGES)
Expand Down
1 change: 1 addition & 0 deletions lib/message-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1842,6 +1842,7 @@ class MessageHandler {
projection: {
_id: true,
uid: true,
thread: true,
flags: true
},
returnDocument: 'after'
Expand Down

0 comments on commit 7ed7343

Please sign in to comment.