Fix typo in getChatHistory.

This commit is contained in:
Juliusz Chroboczek
2020-05-12 12:48:56 +02:00
parent 4a476abe11
commit b8dedcf0f0
+1 -1
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)