0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-05-19 22:03:46 +02:00

nil maps :woozy:

This commit is contained in:
jjj333_p 2024-02-05 17:05:06 -10:00
parent 9a307fc401
commit a6827a35a3

View file

@ -153,6 +153,9 @@ func (rp *RequestPool) updatePresence(db storage.Presence, presence string, user
}
//update time for each presence
if lastPresence[userID] == nil {
lastPresence[userID] = make(map[int]int64)
}
lastPresence[userID][int(presenceID)] = workingTime
var presenceToSet types.Presence