Skip to content
Snippets Groups Projects
Commit 71beaa67 authored by deuce's avatar deuce
Browse files

Update for the new get_all_msg_headers() return value.

parent 7fa0a669
No related branches found
No related tags found
No related merge requests found
......@@ -369,7 +369,6 @@ function getMessageThreads(sub, max) {
var subject;
var msgBase = new MsgBase(sub);
var header_num={};
var all_headers=[];
var m;
var new_thread;
......@@ -381,10 +380,12 @@ function getMessageThreads(sub, max) {
else
max = msgBase.last_msg - max;
if(msgBase.get_all_msg_headers !== undefined && max <= msgBase.first_msg)
all_headers=msgBase.get_all_msg_headers();
header_num=msgBase.get_all_msg_headers();
else {
for(m=max; m <= msgBase.last_msg; m++)
all_headers.push(msgBase.get_msg_header(m));
for(m=max; m <= msgBase.last_msg; m++) {
header=msgBase.get_msg_header(m);
header_num[header.num]=header;
}
}
function add_to_thread(header, thread)
......@@ -394,8 +395,8 @@ function getMessageThreads(sub, max) {
thread.messages.push(header);
}
for(m in all_headers) {
header = all_headers[m];
for(m in header_num) {
header = header_num[m];
if(
header === null
||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment