Fixed small bug in RCV attribute setting (or not fixed ;-))

This commit is contained in:
Alexander S. Aganichev
2000-03-11 14:41:58 +00:00
parent 3c1c87657f
commit 626473f69f
3 changed files with 13 additions and 6 deletions

View File

@@ -924,8 +924,15 @@ int LoadMessage(GMsg* msg, int margin) {
// Update the "Times Read" field
msg->orig_timesread = msg->timesread++;
if(reader_rcv_noise > 1)
AA->SaveHdr(GMSG_UPDATE, msg);
if(reader_rcv_noise > 1) {
GMsg* tmsg = throw_calloc(1, sizeof(GMsg));
AA->LoadHdr(tmsg, msg->msgno);
tmsg->attr = msg->attr;
tmsg->orig_timesread = msg->orig_timesread;
tmsg->received = msg->received;
AA->SaveHdr(GMSG_UPDATE, tmsg);
throw_free(tmsg);
}
msg->attr.upd0();