(chatId string)
| 43 | } |
| 44 | |
| 45 | func (cs *ChatStore) Delete(chatId string) { |
| 46 | cs.lock.Lock() |
| 47 | defer cs.lock.Unlock() |
| 48 | |
| 49 | delete(cs.chats, chatId) |
| 50 | } |
| 51 | |
| 52 | func (cs *ChatStore) CountUserMessages(chatId string) int { |
| 53 | cs.lock.Lock() |
no outgoing calls