mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Threaded view changes for https://github.com/the-djmaze/snappymail/issues/445#issuecomment-1364575843
This commit is contained in:
parent
871664cd39
commit
5c9fdb6b55
7 changed files with 35 additions and 7 deletions
|
|
@ -264,6 +264,17 @@ MessagelistUserStore.reload = (bDropPagePosition = false, bDropCurrentFolderCach
|
|||
|
||||
disableAutoSelect(true);
|
||||
|
||||
if (collection.ThreadUid) {
|
||||
let refs = {};
|
||||
collection.forEach(msg => {
|
||||
msg.level = 0;
|
||||
if (msg.inReplyTo && refs[msg.inReplyTo]) {
|
||||
msg.level = 1 + refs[msg.inReplyTo].level;
|
||||
}
|
||||
refs[msg.messageId] = msg;
|
||||
});
|
||||
}
|
||||
|
||||
MessagelistUserStore(collection);
|
||||
MessagelistUserStore.isIncomplete(false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue