summaryrefslogtreecommitdiff
path: root/helpers.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-08 02:58:19 -0500
committerJeff Carr <[email protected]>2025-10-08 02:58:19 -0500
commit0a823f87a77a53ba73a3c05d69b08fb24e5f14ee (patch)
treea2eea413696c9e148d6ac2c57221bfcc0ae48505 /helpers.go
parent14edae96ad6876121b7fdb51505c9e23b72a1f98 (diff)
typosv0.0.19
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers.go b/helpers.go
index 27f6a73..26806f5 100644
--- a/helpers.go
+++ b/helpers.go
@@ -96,8 +96,8 @@ func (x *Chats) AppendNew(y *Chat) {
// a Append() shortcut (that does Clone() with a mutex) notsure if it really works
func (x *Chat) AppendEntry(y *ChatEntry) {
- x.Lock()
- defer x.Unlock()
+ chatMu.Lock()
+ defer chatMu.Unlock()
x.Entries = append(x.Entries, proto.Clone(y).(*ChatEntry))
}