avoid calling GETR for the number of total/read messages
[citadel.git] / webcit / roomtokens.c
index 884cd63f9d11174f3cd7ef51da4807b843e9c87c..0e632365f761757bdbb3fa91ff04b0fd8b8d73a6 100644 (file)
@@ -384,8 +384,6 @@ void tmplput_ThisRoom_nNewMessages(StrBuf *Target, WCTemplputParams *TP)
 {
        wcsession *WCC = WC;
 
-       LoadRoomXA();
-
        StrBufAppendPrintf(Target, "%d", WCC->CurRoom.nNewMessages);
 }
 
@@ -393,8 +391,6 @@ void tmplput_ThisRoom_nTotalMessages(StrBuf *Target, WCTemplputParams *TP)
 {
        wcsession *WCC = WC;
 
-       LoadRoomXA();
-
        StrBufAppendPrintf(Target, "%d", WCC->CurRoom.nTotalMessages);
 }