]> code.citadel.org Git - citadel.git/blobdiff - webcit/roomtokens.c
avoid calling GETR for the number of total/read messages
[citadel.git] / webcit / roomtokens.c
index bd2648d6e2a919a1959ca6f7241cfb9aa31b6cec..0e632365f761757bdbb3fa91ff04b0fd8b8d73a6 100644 (file)
@@ -1,5 +1,4 @@
 /*
- * $Id$
  * Lots of different room-related operations.
  */
 
@@ -385,8 +384,6 @@ void tmplput_ThisRoom_nNewMessages(StrBuf *Target, WCTemplputParams *TP)
 {
        wcsession *WCC = WC;
 
-       LoadRoomXA();
-
        StrBufAppendPrintf(Target, "%d", WCC->CurRoom.nNewMessages);
 }
 
@@ -394,8 +391,6 @@ void tmplput_ThisRoom_nTotalMessages(StrBuf *Target, WCTemplputParams *TP)
 {
        wcsession *WCC = WC;
 
-       LoadRoomXA();
-
        StrBufAppendPrintf(Target, "%d", WCC->CurRoom.nTotalMessages);
 }