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
4fab578b
Commit
4fab578b
authored
9 years ago
by
Mark Haines
Browse files
Options
Downloads
Plain Diff
Merge branch 'release-v0.12.0' into develop
parents
910956b0
661b7661
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGES.rst
+11
-0
11 additions, 0 deletions
CHANGES.rst
synapse/__init__.py
+1
-1
1 addition, 1 deletion
synapse/__init__.py
synapse/handlers/events.py
+8
-3
8 additions, 3 deletions
synapse/handlers/events.py
synapse/storage/registration.py
+1
-1
1 addition, 1 deletion
synapse/storage/registration.py
with
21 additions
and
5 deletions
CHANGES.rst
+
11
−
0
View file @
4fab578b
Changes in synapse v0.12.0-rc2 (2015-12-14)
===========================================
* Add caches for whether rooms have been forgotten by a user (PR #434)
* Remove instructions to use ``--process-dependency-link`` since all of the
dependencies of synapse are on PyPI (PR #436)
* Parallelise the processing of ``/sync`` requests (PR #437)
* Fix race updating presence in ``/events`` (PR #444)
* Fix bug back-populating search results (PR #441)
* Fix bug calculating state in ``/sync`` requests (PR #442)
Changes in synapse v0.12.0-rc1 (2015-12-10)
===========================================
...
...
This diff is collapsed.
Click to expand it.
synapse/__init__.py
+
1
−
1
View file @
4fab578b
...
...
@@ -16,4 +16,4 @@
"""
This is a reference implementation of a Matrix home server.
"""
__version__
=
"
0.12.0-rc
1
"
__version__
=
"
0.12.0-rc
2
"
This diff is collapsed.
Click to expand it.
synapse/handlers/events.py
+
8
−
3
View file @
4fab578b
...
...
@@ -69,7 +69,12 @@ class EventStreamHandler(BaseHandler):
A deferred that completes once their presence has been updated.
"""
if
user
not
in
self
.
_streams_per_user
:
self
.
_streams_per_user
[
user
]
=
0
# Make sure we set the streams per user to 1 here rather than
# setting it to zero and incrementing the value below.
# Otherwise this may race with stopped_stream causing the
# user to be erased from the map before we have a chance
# to increment it.
self
.
_streams_per_user
[
user
]
=
1
if
user
in
self
.
_stop_timer_per_user
:
try
:
self
.
clock
.
cancel_call_later
(
...
...
@@ -79,8 +84,8 @@ class EventStreamHandler(BaseHandler):
logger
.
exception
(
"
Failed to cancel event timer
"
)
else
:
yield
started_user_eventstream
(
self
.
distributor
,
user
)
self
.
_streams_per_user
[
user
]
+=
1
else
:
self
.
_streams_per_user
[
user
]
+=
1
def
stopped_stream
(
self
,
user
):
"""
If there are no streams for a user this starts a timer that will
...
...
This diff is collapsed.
Click to expand it.
synapse/storage/registration.py
+
1
−
1
View file @
4fab578b
...
...
@@ -258,10 +258,10 @@ class RegistrationStore(SQLBaseStore):
@defer.inlineCallbacks
def
user_add_threepid
(
self
,
user_id
,
medium
,
address
,
validated_at
,
added_at
):
yield
self
.
_simple_upsert
(
"
user_threepids
"
,
{
"
user_id
"
:
user_id
,
"
medium
"
:
medium
,
"
address
"
:
address
,
},
{
"
user_id
"
:
user_id
,
"
validated_at
"
:
validated_at
,
"
added_at
"
:
added_at
,
})
...
...
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