Jonathan de Jong
4b965c862d
Remove redundant "coding: utf-8" lines ( #9786 )
Part of #9744
Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now.
`Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
3 yıl önce
Erik Johnston
243d427fbc
Block clients from sending server ACLs that lock the local server out. ( #8708 )
Fixes #4042
3 yıl önce
Brendan Abolivier
3ee97a2748
Make sure a retention policy is a state event ( #8527 )
* Make sure a retention policy is a state event
* Changelog
3 yıl önce
Patrick Cloke
c619253db8
Stop sub-classing object ( #8249 )
3 yıl önce
Brendan Abolivier
420484a334
Allow capping a room's retention policy ( #8104 )
3 yıl önce
Dagfinn Ilmari Mannsåker
a3f11567d9
Replace all remaining six usage with native Python 3 equivalents ( #7704 )
3 yıl önce
Patrick Cloke
56b66db78a
Strictly enforce canonicaljson requirements in a new room version ( #7381 )
4 yıl önce
Brendan Abolivier
09957ce0e4
Implement per-room message retention policies
4 yıl önce
Erik Johnston
76a58fdcce
Fix spelling.
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
4 yıl önce
Erik Johnston
dc4d74e44a
Validate well-known state events are state events.
Lets disallow sending things like memberships, topics etc as non-state
events.
4 yıl önce
Erik Johnston
f31d4cb7a2
Don't allow clients to send tombstones that reference the same room
4 yıl önce
Amber Brown
32e7c9e7f2
Run Black. ( #5482 )
4 yıl önce
Brendan Abolivier
1473058b5e
Do checks on aliases for incoming m.room.aliases events ( #5128 )
Follow-up to #5124
Also added a bunch of checks to make sure everything (both the stuff added on #5124 and this PR) works as intended.
5 yıl önce
Richard van der Hoff
54a87a7b08
Collect room-version variations into one place ( #4969 )
Collect all the things that make room-versions different to one another into
one place, so that it's easier to define new room versions.
5 yıl önce
Erik Johnston
610f0830b0
Don't assert an event must have an event ID
5 yıl önce
Erik Johnston
40638ae7f5
Remove duplicate checks
5 yıl önce
Erik Johnston
9fa3c6ffa3
Fix up error messages
5 yıl önce
Erik Johnston
28efc80723
Fold validate into validate_new
5 yıl önce
Erik Johnston
b872c7b1b4
Split up event validation between event and builder
The validator was being run on the EventBuilder objects, and so the
validator only checked a subset of fields. With the upcoming
EventBuilder refactor even fewer fields will be there to validate.
To get around this we split the validation into those that can be run
against an EventBuilder and those run against a fully fledged event.
5 yıl önce
Amber Brown
49af402019
run isort
5 yıl önce
Adrian Tschira
d9fe2b2d9d
Replace some more comparisons with six
plus a bonus b"" string I missed last time
Signed-off-by: Adrian Tschira <nota@notafile.com>
6 yıl önce
Matthew Hodgson
6c28ac260c
copyrights
8 yıl önce
Mark Haines
adb04b1e57
Update copyright notices
9 yıl önce
Erik Johnston
63810c777d
Validate message, topic and name event contents
9 yıl önce
Erik Johnston
b245ee34ed
Add some basic event validation
9 yıl önce
Erik Johnston
8c48450682
Add PEP8 newlines
9 yıl önce
Erik Johnston
75b4329aaa
WIP for new way of managing events.
9 yıl önce