Commit Graph

354 Commits (a09882de8378f143af79f97929bd1655cc7ac495)

Author SHA1 Message Date
Kegan Dougal 4c68460392 SYN-154: Tweak how the m.room.create check is done. 10 years ago
Kegan Dougal 9cb4f75d53 SYN-154: Better error messages when joining an unknown room by ID. 10 years ago
Erik Johnston 9e5545a6fa RoomsForUser now has sender instead of user_id 10 years ago
Erik Johnston 76ec154e95 We don't need the full events for get_rooms_for_user_where_membership_is 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Erik Johnston f0128f9600 Add RoomMemberStore.get_users_in_room, so that we can get the list of joined users without having to retrieve the full events 10 years ago
Kegan Dougal 67a406a754 Rate limit display names and avatar urls per request rather than per event. 10 years ago
Mark Haines efd27ff01b Set a state_key for the topic and room name, otherwise they won't be treated as room state 10 years ago
Mark Haines f70e622d59 bump_presence_active_time when sending a message event 10 years ago
Mark Haines a999f0dec3 Don't ratelimit room create events 10 years ago
Mark Haines 1e7f83b91d Set display name when joining via alias 10 years ago
Mark Haines 5739e6c606 s/user_id/sender/ 10 years ago
Mark Haines 041ac476a5 Supply auth_chain along with current state in '/state/', fetch auth events from a remote server if we are missing some of them 10 years ago
Mark Haines dea5d4b03b Don't yield on sending the event accross federation. 10 years ago
Erik Johnston f3788e3c78 Test some ideas that might help performance a bit 10 years ago
Erik Johnston 21cab3a7ec Fix where we pulled in event.state_events from hotfixes branch 10 years ago
Erik Johnston 3defd5b3ee Add FIXME 10 years ago
Erik Johnston 96779d2490 Fix bug where we did not send the full auth chain to people that joined over federation 10 years ago
Erik Johnston 2d7716d4d0 Make error messages slightly more helpful 10 years ago
Erik Johnston f06161a307 Enable rate limiting for all events 10 years ago
Mark Haines 627e4f01d2 Remove send_message since nothing was calling it. Remove Snapshot because only send_message was using it 10 years ago
Mark Haines c3eae8a88c Construct the EventContext in the state handler rather than constructing one and then immediately calling state_handler.annotate_context_with_state 10 years ago
Mark Haines 3c7857e49b clean up coding style a bit 10 years ago
Erik Johnston 3c77d13aa5 Kill off synapse.api.events.* 10 years ago
Erik Johnston 6a1da99fab Add fixme to raising of AuthError in federation land 10 years ago
Erik Johnston 009e4b5637 User.is_mine is no longer a thing. Use hs.is_mine instead. 10 years ago
Erik Johnston cf6e5f1dbf Rename MessageHandler.handle_event. Add a few comments. 10 years ago
Erik Johnston 65cdf4e724 Get current member state from current_state snapshot. Fix leave test. 10 years ago
Paul "LeoNerd" Evans 20beed9dd4 Still send typing notifications to myself if I'm the only one in the room (it's a lonely life...) 10 years ago
Paul "LeoNerd" Evans b0bb1756a9 Send list of typing user IDs as 'user_ids' list within 'content', so that m.typing stream events have a toplevel content, for consistency with others 10 years ago
Erik Johnston 63810c777d Validate message, topic and name event contents 10 years ago
Paul "LeoNerd" Evans cfb963af03 When users leave rooms mark them as no longer typing in them 10 years ago
Paul "LeoNerd" Evans f25764943c Add a 'user_left_room' distributor signal analogous to 'user_joined_room' 10 years ago
Paul "LeoNerd" Evans 5ebc994f84 Actually auth-check to ensure people can only send typing notifications for rooms they're actually in 10 years ago
Paul "LeoNerd" Evans 966c4b2b04 Add a sprinkling of logger.debug() into typing notification handler 10 years ago
Erik Johnston d3eb12c7b8 Fix federation test 10 years ago
Paul "LeoNerd" Evans 3b2cc26053 Initial hack at unit tests of room typing REST API 10 years ago
Erik Johnston 0b04369238 Fix public room joining by making sure replaces_state never points to itself. 10 years ago
Paul "LeoNerd" Evans 5f49914dee Avoid cyclic dependency in handler setup 10 years ago
Paul "LeoNerd" Evans 1a75ff5c23 Hook up the event stream to typing notifications 10 years ago
Paul "LeoNerd" Evans 4006d58335 Store serial numbers per room for typing event stream purposes 10 years ago
Paul "LeoNerd" Evans 9eb819e828 First hack at implementing timeouts in typing notification handler 10 years ago
Erik Johnston 4c682143c8 .from_string() no longer takes a HS 10 years ago
Erik Johnston 02e4c18171 Remove dead code 10 years ago
Erik Johnston b245ee34ed Add some basic event validation 10 years ago
Erik Johnston 1d2a0040cf Fix bug where we clobbered old state group values 10 years ago
Erik Johnston 02db7eb209 Fix bug when uploading state with empty state_key 10 years ago
Erik Johnston 02db1fd2e7 Fix AttributeError 10 years ago
Erik Johnston 018443cb59 Make depth increase. 10 years ago
Erik Johnston 95aa903ffa Try and figure out how and why signatures are being changed. 10 years ago