summary refs log tree commit diff
path: root/synapse/handlers/message.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-02-23Add commentsErik Johnston1-0/+4
2016-02-23Change the way we figure out presence updates for small deltasErik Johnston2-17/+52
2016-02-23Don't include defer.returnValue in Measure blockErik Johnston1-9/+12
2016-02-23Measure PresenceEventSource.get_new_eventsErik Johnston1-34/+35
2016-02-22Remove superfluous call to get_state_at when we already have an event for ↵Erik Johnston1-4/+12
that stream position
2016-02-19Fix flake8 warnings for testsMark Haines39-364/+359
2016-02-19Correctly filter statesErik Johnston1-2/+2
2016-02-19Only send presence updates to remote hosts if user is oursErik Johnston1-2/+10
2016-02-19Add Measures to presenceErik Johnston1-57/+62
2016-02-19Add presence metricErik Johnston1-0/+3
2016-02-19Remove spurious extra metricsErik Johnston1-1/+0
2016-02-19Don't set currently_active for remote presenceErik Johnston2-10/+27
2016-02-19More metricsErik Johnston1-0/+6
2016-02-19Add presence metricsErik Johnston2-0/+14
2016-02-18"You are not..."Erik Johnston1-1/+1
2016-02-18Close cursorErik Johnston1-0/+1
2016-02-18Remove unused param from get_max_tokenErik Johnston6-13/+11
2016-02-18WheelTimer: Don't scan list, use index.Erik Johnston1-5/+8
2016-02-18Remove dead code for setting device specific rules.Mark Haines10-141/+45
It wasn't possible to hit the code from the API because of a typo in parsing the request path. Since no-one was using the feature we might as well remove the dead code.
2016-02-18Remove invalid arg.Erik Johnston1-1/+0
2016-02-18Add unit testErik Johnston2-93/+560
2016-02-18Review commentsDaniel Wagner-Hall3-7/+7
2016-02-18Remove old tests.Erik Johnston6-2098/+0
2016-02-18Add stuff pulled from the DB to the cacheErik Johnston1-2/+4
2016-02-18PEP8Erik Johnston1-2/+2
2016-02-18Prefix TS fields with _tsErik Johnston4-43/+44
2016-02-18Remove status_msg when going offline. Don't offline -> online if you send a ↵Erik Johnston1-5/+15
message
2016-02-18Check presence state is a valid oneErik Johnston2-1/+6
2016-02-18Move if statementErik Johnston1-8/+8
2016-02-18CommentErik Johnston1-0/+2
2016-02-17Some cleanupDaniel Wagner-Hall2-69/+61
I'm not particularly happy with the "action" switching, but there's no convenient way to defer the work that needs to happen after it, so... :(
2016-02-17Remove spurious commentErik Johnston1-1/+0
2016-02-17Initial cutErik Johnston16-1136/+933
2016-02-17Respond to federated invite with non-empty contextDaniel Wagner-Hall3-46/+65
Currently, we magically perform an extra database hit to find the inviter, and use this to guess where we should send the event. Instead, fill in a valid context, so that other callers relying on the context actually have one.
2016-02-17Add wheeltimer implErik Johnston2-0/+162
2016-02-17api/filtering: don't assume that event content will always be a dictPatrik Oldsberg1-1/+4
Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
2016-02-17client/v1/room: include event_id in response to state event PUT, in ↵Patrik Oldsberg1-2/+2
accordance with the spec Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
2016-02-16Some cleanup, some TODOs, more to doDaniel Wagner-Hall1-68/+60
2016-02-16Fix typo in request validation for adding push rules.Mark Haines1-1/+1
2016-02-16Make adding push rules idempotentMark Haines1-82/+86
Also remove the **kwargs from the add_push_rule method. Fixes https://matrix.org/jira/browse/SYN-391
2016-02-16Some cleanupDaniel Wagner-Hall2-23/+30
2016-02-16Tidy? up room creation event sendingDaniel Wagner-Hall1-63/+72
2016-02-16Add commentDaniel Wagner-Hall1-1/+1
2016-02-15Branch off member and non member sendsDaniel Wagner-Hall5-74/+99
Unclean, needs tidy-up, but works
2016-02-15Simplify room creation codeDaniel Wagner-Hall2-52/+28
2016-02-15Simplify room creation codeDaniel Wagner-Hall2-55/+31
2016-02-15Use update_membership for profile updatesDaniel Wagner-Hall2-20/+12
2016-02-15Use update_membership to kick guestsDaniel Wagner-Hall2-16/+19
2016-02-15Reuse update_membership from /joinDaniel Wagner-Hall2-19/+14
2016-02-15Inline _do_local_membership_updateDaniel Wagner-Hall1-18/+7
2016-02-15Inline _do_join as it now only has one callerDaniel Wagner-Hall1-48/+47
Also, consistently apply rate limiting. Again, ugly, but a step in the right direction.
2016-02-15Merge implementation of /join by alias or IDDaniel Wagner-Hall5-70/+71
This code is kind of rough (passing the remote servers down a long chain), but is a step towards improvement.
2016-02-15Merge some room joining codepathsDaniel Wagner-Hall2-5/+11
Force joining by alias to go through the send_membership_event checks, rather than bypassing them straight into _do_join. This is the first of many stages of cleanup.
2016-02-12Revert "Merge two of the room join codepaths"Daniel Wagner-Hall5-73/+69
This reverts commit cf81375b94c4763766440471e632fc4b103450ab. It subtly violates a guest joining auth check
2016-02-12Merge two of the room join codepathsDaniel Wagner-Hall5-69/+73
There's at least one more to merge in. Side-effects: * Stop reporting None as displayname and avatar_url in some cases * Joining a room by alias populates guest-ness in join event * Remove unspec'd PUT version of /join/<room_id_or_alias> which has not been called on matrix.org according to logs * Stop recording access_token_id on /join/room_id - currently we don't record it on /join/room_alias; I can try to thread it through at some point.
2016-02-12Catch the exceptions thrown by twisted when you write to a closed connectionMark Haines5-11/+33
2016-02-12Mitigate against incorrect old state in /sync.Erik Johnston1-5/+12
There have been reports from the field that servers occasionally have incorrect notions of what the old state of a room is. This proves problematic as /sync relies on a correct old state. This patch makes /sync specifically include in the 'state' key any current state events that haven't been correctly included.
2016-02-11Enforce user_id exclusivity for AS registrationsDaniel Wagner-Hall1-5/+12
This whole set of checks is kind of an ugly mess, which I may clean up at some point, but for now let's be correct.
2016-02-11Bump version and changelogErik Johnston2-1/+6
2016-02-11Fix SYN-627, events are in incorrect room in /syncErik Johnston1-1/+1
2016-02-11Bump version and changelogErik Johnston2-1/+7
2016-02-11Return events in correct order for /eventsErik Johnston2-8/+12
2016-02-11Add some paranoia loggingErik Johnston1-0/+10
2016-02-100.13.1 v0.13.1Matthew Hodgson1-1/+1
2016-02-10bump for 0.13.1Matthew Hodgson1-0/+7
2016-02-10try to bump syweb to 0.6.8Matthew Hodgson1-1/+1
2016-02-10Update CHANGESErik Johnston1-2/+4
2016-02-10Bump version and changelogErik Johnston2-1/+23
2016-02-10Batch fetch _get_state_groups_from_groupsErik Johnston1-32/+34
2016-02-10Use _simple_select_many for _get_state_group_for_eventsErik Johnston2-17/+11
2016-02-10Only calculate initial sync for 10 rooms at a timeErik Johnston1-24/+29
This helps to ensure we don't completely starve other requests.
2016-02-10Remove commentErik Johnston1-1/+1
2016-02-10s/parent_context/previous_context/Erik Johnston1-9/+9
2016-02-10Set parent context on instansiationErik Johnston1-2/+7
2016-02-10Rename functionsErik Johnston2-4/+4
2016-02-09TypoErik Johnston1-1/+1
2016-02-09Atomically persit push actions when we persist the eventErik Johnston6-65/+49
2016-02-09Pass in current state to push action handlerErik Johnston3-27/+20
2016-02-09Fix testErik Johnston1-9/+1
2016-02-09Fix testErik Johnston1-3/+4
2016-02-09Change a log from debug to infoErik Johnston1-1/+1
2016-02-09Remove dead codeErik Johnston1-12/+0
2016-02-09Invalidate get_last_receipt_event_id_for_user cacheErik Johnston1-0/+5
2016-02-09Don't load all ephemeral state for a room on every syncErik Johnston2-14/+20
2016-02-09Fix unit testsErik Johnston2-5/+9
2016-02-09Remove pyc files before running testsDaniel Wagner-Hall1-1/+1
2016-02-09Revert "Reject additional path segments"Daniel Wagner-Hall3-6/+6
This reverts commit 1d19a5ec0fff73af9cee8c21118020b31be47379. iOS Console is apparently relying on these paths.
2016-02-09Measure some /sync related thingsErik Johnston2-150/+162
2016-02-09Revert to putting it around the entire blockErik Johnston1-124/+124
2016-02-09Don't create new logging contextErik Johnston1-12/+15
2016-02-09Don't bother copying records on parent contextErik Johnston1-8/+0
2016-02-09Fix bug in util.metrics.MeasureErik Johnston1-1/+3
2016-02-09Create new context when measuringErik Johnston1-2/+5
2016-02-09Don't measure across event stream call, as it lasts for a long time.Erik Johnston1-124/+124
2016-02-09Change logcontext warns to debugErik Johnston1-3/+3
2016-02-08Derive macaroon_secret_key from signing key.Erik Johnston2-16/+30
Unfortunately, there are people that are running synapse without a `macaroon_sercret_key` set. Mandating they set one is a good solution, except that breaking auto upgrades is annoying.
2016-02-08Fix up logcontextsErik Johnston31-229/+356
2016-02-08Add metrics to pushersErik Johnston3-31/+149
2016-02-08Reject additional path segmentsDaniel Wagner-Hall3-6/+6