🚑 Fix typing cache map is nil

This commit is contained in:
LittleSheep 2024-08-23 22:11:11 +08:00
parent f97cb877f5
commit e5c46a89df

View File

@ -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