From e5c46a89df503f30f57c80ebad3776cc77699d36 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 23 Aug 2024 22:11:11 +0800 Subject: [PATCH] :ambulance: Fix typing cache map is nil --- pkg/internal/services/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/services/status.go b/pkg/internal/services/status.go index 9ae76bb..f1b8afc 100644 --- a/pkg/internal/services/status.go +++ b/pkg/internal/services/status.go @@ -21,7 +21,7 @@ type statusQueryCacheEntry struct { var statusQueryCacheLock sync.Mutex // Map for caching typing status queries [channel id][user id] -var statusQueryCache map[uint]map[uint]statusQueryCacheEntry +var statusQueryCache = make(map[uint]map[uint]statusQueryCacheEntry) func SetTypingStatus(channelId uint, userId uint) error { var account models.Account