This commit is contained in:
the-djmaze 2022-12-27 12:19:29 +01:00
parent 871664cd39
commit 5c9fdb6b55
7 changed files with 35 additions and 7 deletions

View file

@ -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);