1
Fork 0

Fix typo in getChatHistory.

This commit is contained in:
Juliusz Chroboczek 2020-05-12 12:48:56 +02:00
parent 4a476abe11
commit b8dedcf0f0
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ func (g *group) addToChatHistory(id, user, value string, me bool) {
func (g *group) getChatHistory() []chatHistoryEntry {
g.mu.Lock()
g.mu.Unlock()
defer g.mu.Unlock()
h := make([]chatHistoryEntry, len(g.history))
copy(h, g.history)