mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 22:43:10 -06:00
Ignore set_presence parameter in sync request - mark user always as online (#25)
This commit is contained in:
parent
7678de4942
commit
10dc6b5a0f
|
|
@ -255,7 +255,7 @@ func (rp *RequestPool) OnIncomingSyncRequest(req *http.Request, device *userapi.
|
||||||
defer activeSyncRequests.Dec()
|
defer activeSyncRequests.Dec()
|
||||||
|
|
||||||
rp.updateLastSeen(req, device)
|
rp.updateLastSeen(req, device)
|
||||||
rp.updatePresence(rp.db, req.FormValue("set_presence"), device.UserID)
|
rp.updatePresence(rp.db, "", device.UserID)
|
||||||
|
|
||||||
waitingSyncRequests.Inc()
|
waitingSyncRequests.Inc()
|
||||||
defer waitingSyncRequests.Dec()
|
defer waitingSyncRequests.Dec()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue