chore: refresh gramsrv public release

This commit is contained in:
A 2026-06-30 14:37:43 +08:00
parent 75cebe8dbf
commit 70b6820474
1274 changed files with 378751 additions and 59919 deletions

View file

@ -0,0 +1,22 @@
package memory
func (s *MessageStore) nextBoxIDLocked(userID int64) int {
next := s.nextBox[userID] + 1
s.nextBox[userID] = next
return next
}
func (s *MessageStore) nextPtsLocked(userID int64) int {
next := s.nextPts[userID] + 1
s.nextPts[userID] = next
return next
}
func (s *MessageStore) nextPtsNLocked(userID int64, count int) int {
if count <= 0 {
count = 1
}
next := s.nextPts[userID] + count
s.nextPts[userID] = next
return next
}