projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avoid calling GETR for the number of total/read messages
[citadel.git]
/
webcit
/
roomtokens.c
diff --git
a/webcit/roomtokens.c
b/webcit/roomtokens.c
index 884cd63f9d11174f3cd7ef51da4807b843e9c87c..0e632365f761757bdbb3fa91ff04b0fd8b8d73a6 100644
(file)
--- a/
webcit/roomtokens.c
+++ b/
webcit/roomtokens.c
@@
-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);
}