Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
f70e622d
Commit
f70e622d
authored
10 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
bump_presence_active_time when sending a message event
parent
a999f0de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/handlers/message.py
+6
-0
6 additions, 0 deletions
synapse/handlers/message.py
with
6 additions
and
0 deletions
synapse/handlers/message.py
+
6
−
0
View file @
f70e622d
...
...
@@ -19,6 +19,7 @@ from synapse.api.constants import EventTypes, Membership
from
synapse.api.errors
import
RoomError
from
synapse.streams.config
import
PaginationConfig
from
synapse.events.validator
import
EventValidator
from
synapse.util.logcontext
import
PreserveLoggingContext
from
._base
import
BaseHandler
...
...
@@ -153,6 +154,11 @@ class MessageHandler(BaseHandler):
context
=
context
,
)
if
event
.
type
==
EventTypes
.
Message
:
presence
=
self
.
hs
.
get_handlers
().
presence_handler
with
PreserveLoggingContext
():
presence
.
bump_presence_active_time
(
user
)
defer
.
returnValue
(
event
)
@defer.inlineCallbacks
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment