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:
parent
9a307fc401
commit
a6827a35a3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue