Skip to content
Snippets Groups Projects
Commit fd20517e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Minor optimization to previous commit.

parent eed6aca5
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -53,7 +53,7 @@ function get_message_offsets(type) ...@@ -53,7 +53,7 @@ function get_message_offsets(type)
// for(last_offset=0; (idx=msgbase.get_msg_index(true,last_offset)) != null;last_offset++) { // for(last_offset=0; (idx=msgbase.get_msg_index(true,last_offset)) != null;last_offset++) {
var total_msgs = msgbase.total_msgs; var total_msgs = msgbase.total_msgs;
for (var last_offset = 0; last_offset < msgbase.total_msgs; last_offset++) { for (var last_offset = 0; last_offset < total_msgs; last_offset++) {
var idx = msgbase.get_msg_index(true, last_offset); var idx = msgbase.get_msg_index(true, last_offset);
if (typeof idx === 'undefined' || idx === null) continue; if (typeof idx === 'undefined' || idx === null) continue;
if(idx.attr&MSG_DELETE) if(idx.attr&MSG_DELETE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment