]> code.citadel.org Git - citadel.git/blobdiff - citadel/msgbase.c
* msgbase.c: modified AddMessageToRoom() and all functions that call it
[citadel.git] / citadel / msgbase.c
index 8ab426acf20dff824bbb3c9694692768efa0aae0..4785df0a6f760484d96acf72dea3ba87cd0553a8 100644 (file)
@@ -784,10 +784,9 @@ void save_message(char *mtmp,      /* file containing proper message */
                }
 
        /* Add the message pointer to the room */
-       AddMessageToRoom(&CC->quickroom, newmsgid);
+       CC->quickroom.QRhighest = AddMessageToRoom(&CC->quickroom, newmsgid);
 
        /* update quickroom */
-       CC->quickroom.QRhighest = newmsgid;
        lputroom(&CC->quickroom, actual_rm);
 
        /* Network mail - send a copy to the network program. */
@@ -1232,7 +1231,7 @@ void cmd_move(char *args)
 
        /* put the message into the target room */
        lgetroom(&qtemp, targ);
-       AddMessageToRoom(&qtemp, num);
+       qtemp.QRhighest = AddMessageToRoom(&qtemp, num);
        lputroom(&qtemp, targ);
 
        cprintf("%d Message moved.\n", OK);