summary refs log tree commit diff
path: root/synapse/api/errors.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-03-27Add unit testsErik Johnston1-1/+171
2019-03-27Use event streams to calculate presenceErik Johnston3-32/+219
Primarily this fixes a bug in the handling of remote users joining a room where the server sent out the presence for all local users in the room to all servers in the room. We also change to using the state delta stream, rather than the distributor, as it will make it easier to split processing out of the master process (as well as being more flexible). Finally, when sending presence states to newly joined servers we filter out old presence states to reduce the number sent. Initially we filter out states that are offline and have a last active more than a week ago, though this can be changed down the line. Fixes #3962
2019-03-26Support 3PID login in password providers (#4931)Andrew Morgan8-26/+137
Adds a new method, check_3pid_auth, which gives password providers the chance to allow authentication with third-party identifiers such as email or msisdn.
2019-03-27Use the state event amount for userdir import batching, not room count (#4944)Amber Brown2-8/+21
2019-03-26Make federation endpoints more tolerant of trailing slashes v2 (#4935)Andrew Morgan5-11/+13
Redo of https://github.com/matrix-org/synapse/pull/4840
2019-03-25Fix ClientReplicationStreamProtocol.__str__ (#4929)Richard van der Hoff3-4/+6
`__str__` depended on `self.addr`, which was absent from ClientReplicationStreamProtocol, so attempting to call str on such an object would raise an exception. We can calculate the peer addr from the transport, so there is no need for addr anyway.
2019-03-25Fix bug where read-receipts lost their timestamps (#4927)Richard van der Hoff8-12/+179
Make sure that they are sent correctly over the replication stream. Fixes: #4898
2019-03-25Use an explicit dbname for postgres connections in the tests. (#4928)Richard van der Hoff2-18/+17
I don't have a database with the same