summary refs log tree commit diff
path: root/synapse/handlers/presence.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix code-styleMark Haines2015-02-101-4/+4
|
* Code-style fixesMark Haines2015-02-101-1/+3
|
* Merge branch 'develop' into pushersDavid Baker2015-01-281-11/+12
|\ | | | | | | | | | | Conflicts: synapse/handlers/events.py synapse/server.py
| * Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-231-11/+12
| |
* | Reset badge count to zero when last active time is bumpedDavid Baker2015-01-281-0/+5
|/
* Update copyright noticesMark Haines2015-01-061-1/+1
|
* Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-041-5/+7
|\
| * @log_function on PresenceStream's get_new_events_for_user()Paul "LeoNerd" Evans2014-12-031-1/+3
| |
| * Store any incoming presence push in the local cache anyway, even if there's ↵Paul "LeoNerd" Evans2014-12-031-4/+4
| | | | | | | | no interested observers (yet *hint*) (SYN-115)
* | Merge branch 'develop' of github.com:matrix-org/synapse into events_refactorErik Johnston2014-12-031-0/+5
|\|
| * Extra verbosity on logging of received presence infoPaul "LeoNerd" Evans2014-12-021-0/+5
| |
* | Change DomainSpecificString so that it doesn't use a HomeServer objectErik Johnston2014-12-021-19/+19
|/
* Add a few missing yields, Move deferred lists inside PreserveLoggingContext ↵Mark Haines2014-11-201-21/+27
| | | | because they don't interact well with the logging contexts
* Initialise UserPresenceCache instances to always contain a 'presence' keyPaul "LeoNerd" Evans2014-11-191-4/+2
|
* Added ability to .get_state() from the PresenceHandler by returning a ↵Paul "LeoNerd" Evans2014-11-181-2/+15
| | | | complete m.presence event
* Don't expect all _user_cachemap entries to definitely contain a ↵Paul "LeoNerd" Evans2014-11-181-3/+3
| | | | "last_active" key
* Fix pep8 warningsMark Haines2014-10-301-18/+15
|
* Fix an off-by-one bug in presence event stream pagination; this might be ↵Paul "LeoNerd" Evans2014-10-291-1/+1
| | | | responsible for any number of bug reports
* Construct a source-specific 'SourcePaginationConfig' to pass into ↵Paul "LeoNerd" Evans2014-10-291-20/+5
| | | | get_pagination_rows; meaning each source doesn't have to care about its own name any more
* Remove redundant (and incorrect) presence pagination fetching codePaul "LeoNerd" Evans2014-10-291-3/+0
|
* Fix race in presence handler where we evicted things from cache while ↵Erik Johnston2014-09-061-2/+3
| | | | handling a key therein
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* Kill the statePaul "LeoNerd" Evans2014-09-031-26/+5
| | | | ... key from all the Presence messages
* Bugfix for back-pagination of presencePaul "LeoNerd" Evans2014-09-031-0/+2
|
* Implement presence state visibilty limiting when polling eventsource for streamPaul "LeoNerd" Evans2014-09-031-9/+57
|
* Update API docs to use 'presence' key not 'state'. Fixed error messages when ↵Kegan Dougal2014-09-031-1/+1
| | | | setting presence.
* Rename the 'do_users_share_a_room' to something slightly less verb-soundingPaul "LeoNerd" Evans2014-09-031-1/+1
|
* Neater is_presence_visible() codePaul "LeoNerd" Evans2014-09-031-9/+8
|
* Safer handling of incoming presence EDUs that may or maynot contain ↵Paul "LeoNerd" Evans2014-09-021-3/+13
| | | | 'presence' or 'state'
* 'continue' to go to the next item in a for loop, not 'break'Paul "LeoNerd" Evans2014-09-021-1/+1
|
* Reënable presence visibility permission checking now it's not used on ↵Paul "LeoNerd" Evans2014-09-011-4/+0
| | | | redundant code paths
* No need to test is_presence_visible in _start_polling_local because we know ↵Paul "LeoNerd" Evans2014-09-011-4/+0
| | | | it will be by when it's called
* Bump a user's presence last_active time every time they send a message to a roomPaul "LeoNerd" Evans2014-09-011-0/+6
|
* Rename API-visible 'mtime' presence field to 'last_active'; slightly ↵Paul "LeoNerd" Evans2014-09-011-23/+49
| | | | different semantics
* Rename 'state' presence key to the much more obvious 'presence'; maintain a ↵Paul "LeoNerd" Evans2014-09-011-11/+31
| | | | legacy 'state' copy for now
* Bugfixes on presence pushes on user joining:Paul "LeoNerd" Evans2014-08-291-9/+8
| | | | | | | | | * No need to inform clients of status of remote users; as that will arrive in due course anyway. We don't -have- the state currently, so we'd only send an unknown message * Remember to bump the presence serial for the event source, so the notifiers will wake up and report it
* Renamed get_current_token_part to get_current_keyPaul "LeoNerd" Evans2014-08-291-1/+1
|
* Have EventSource's get_new_events_for_user() API work only on keys within ↵Paul "LeoNerd" Evans2014-08-291-10/+4
| | | | that source, not overall eventstream tokens
* Move the *EventSource classes into the handlers they relate to, so it's ↵Paul "LeoNerd" Evans2014-08-291-0/+78
| | | | easier to find the code
* Fix a couple of bugs in presence handler related to pushing updatesto the ↵Erik Johnston2014-08-291-18/+41
| | | | correct user. Fix presence tests.
* Turn of trace_function loggingErik Johnston2014-08-281-8/+8
|
* Only poll remote users if they are in our presence list, rather than in a ↵Erik Johnston2014-08-281-53/+66
| | | | common room
* Don't query the rooms members table so much by using the new notifier api ↵Erik Johnston2014-08-281-61/+45
| | | | that allows you to specify room_ids to notify.
* Merge branch 'develop' of github.com:matrix-org/synapse into presence_loggingErik Johnston2014-08-281-2/+14
|\ | | | | | | | | Conflicts: synapse/handlers/presence.py
| * Only send presence "poll"/"unpoll" EDUs when changing from/to zero remotesPaul "LeoNerd" Evans2014-08-281-2/+14
| |
| * Re-enable presence, un-skip presence testsPaul "LeoNerd" Evans2014-08-281-8/+0
| |
* | And more logging.Erik Johnston2014-08-281-0/+1
| |
* | Add more logging. Up the event stream timer to 10sErik Johnston2014-08-281-0/+2
| |
* | Add logging to try and figure out what is going on with the presence stuffErik Johnston2014-08-281-2/+9
|/
* Turn off presence again.Erik Johnston2014-08-271-2/+2
|
* Implement presence event source. Change the way the notifier indexes listenersErik Johnston2014-08-271-6/+1
|
* Enable presence again. Fix up api to match old api.Erik Johnston2014-08-261-2/+2
|
* WIP: Completely change how event streaming and pagination work. This ↵Erik Johnston2014-08-261-32/+0
| | | | reflects the change in the underlying storage model.
* Fix pyflakes errorsMark Haines2014-08-261-1/+1
|
* Add a do_users_share_a_room method and use that in the presence handler.Erik Johnston2014-08-261-5/+4
|
* Oops, we need to use defer.returnValue.Erik Johnston2014-08-221-1/+2
|
* Make is_presence_visible always return true as it was thrashing the database.Erik Johnston2014-08-221-0/+3
|
* Add indices to schemaErik Johnston2014-08-221-0/+4
|
* Merge branch 'master' of github.com:matrix-org/synapse into sql_refactorErik Johnston2014-08-191-3/+0
|\
| * Don't delete OFFLINE users from the presence cache, so we can report on ↵Paul "LeoNerd" Evans2014-08-191-3/+0
| | | | | | | | their offline mtime
* | PresenceStreamData was expecting *_key to be intsErik Johnston2014-08-191-0/+3
| |
* | Merge branch 'master' of github.com:matrix-org/synapse into sql_refactorErik Johnston2014-08-191-3/+7
|\| | | | | | | | | | | | | Conflicts: tests/rest/test_presence.py tests/rest/test_rooms.py tests/utils.py
| * Perform the 'REST'-level tests of Presence against the real Presence handler ↵Paul "LeoNerd" Evans2014-08-191-1/+1
| | | | | | | | as well, mocking out the datastore beneath it
| * Implement and test presence dropping of remote usersPaul "LeoNerd" Evans2014-08-191-2/+6
| |
* | Change the way pagination works to support out of order events.Erik Johnston2014-08-191-1/+1
|/
* Allow room presence visibility between users who share a roomPaul "LeoNerd" Evans2014-08-181-7/+5
|
* improve commentMatthew Hodgson2014-08-161-1/+1
|
* emergency bodges to turn off presence ACLs in order to makeMatthew Hodgson2014-08-161-2/+7
| | | | matrix.org:8080 actually work
* When starting to poll for presence, also include members of all shared roomsPaul "LeoNerd" Evans2014-08-151-3/+12
|
* Round Presence mtime and mtime_age to nearest msec; avoids floats for msec ↵Paul "LeoNerd" Evans2014-08-141-5/+15
| | | | values over the wire
* An initial hack at storing presence state-change mtimes in database and ↵Paul "LeoNerd" Evans2014-08-131-7/+34
| | | | presenting age durations to clients/federation events
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-131-0/+1
|
* Reference Matrix Home Servermatrix.org2014-08-121-0/+697