1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +01:00

Fix typo in getChatHistory.

This commit is contained in:
Juliusz Chroboczek 2020-05-12 12:48:56 +02:00
parent 4a476abe11
commit b8dedcf0f0

View file

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