Commit graph

2782 commits

Author SHA1 Message Date
santhoshivan23 dbc3b47d14
Merge branch 'main' into token-registration 2023-06-21 21:24:09 +05:30
santhoshivan23 f52fd59ccf Merge branch 'token-registration' of github.com:santhoshivan23/dendrite into token-registration 2023-06-21 21:23:10 +05:30
santhoshivan23 c5bb8f6578 addressed review comments 2023-06-21 21:21:05 +05:30
Till a734b112c6
Fix backfilling (#3117)
This should fix two issues with backfilling:
1. right after creating and joining a room over federation, we are doing
a `/backfill` request, which would return redacted events, because the
`authEvents` are empty. Even though the spec states that, in the absence
of a history visibility event, it should be handled as `shared`.
2. `gomatrixserverlib: unsupported room version ''` - because, well, we
were never setting the `roomInfo` field..
2023-06-20 16:52:29 +02:00
santhoshivan23 2c5a56bd96
Merge branch 'main' into token-registration 2023-06-19 22:32:44 +05:30
CicadaCinema d13466c1ee
rearrange order of sections about signing keys and configuring dendrite, fix a dead link (#3114)
I thought I would rearrange these pages since the configuration step
requires that a signing key has been generated.

Co-authored-by: kegsay <kegan@matrix.org>
2023-06-18 22:54:16 +01:00
santhoshivan23 09904290cb added test cases 2023-06-17 11:51:57 +05:30
santhoshivan23 36d13b14e5
Merge branch 'main' into token-registration 2023-06-15 21:14:56 +05:30
Josh Qou 420e7ec81f
Fix unsafe hotserving behaviour for multimedia uploads. (#3113)
Return multimedia with a disposition type of attachment instead of
inline. NVT#1548992

Signed-off-by: Josh Qou [jqou@icloud.com](mailto:jqou@icloud.com)

Co-authored-by: Jon <haddock.05.roast@icloud.com>
2023-06-15 12:28:34 +01:00
santhoshivan23 9b83df2b2b add back dendrite 2023-06-15 08:53:42 +05:30
santhoshivan23 8c3a77334c
Merge branch 'main' into token-registration 2023-06-14 22:54:15 +05:30
santhoshivan23 6ea96a0909 addressed review comments 2023-06-14 22:51:56 +05:30
Devon Hudson 8cf6c381e2
Fix senderID/key conversion unit tests 2023-06-14 17:11:27 +01:00
Devon Hudson 3f4df25b31
Add missing dep 2023-06-14 17:04:19 +01:00
Devon Hudson 5aaa539e3e
Fix senderID/key conversions 2023-06-14 16:42:09 +01:00
devonh e4665979bf
Merge SenderID & Per Room User Key work (#3109) 2023-06-14 14:23:46 +00:00
Till 7a2e325d10
Add AssignRoomNID to pre-assign roomNIDs (#3111) 2023-06-13 16:28:41 +02:00
Till 2c87972a3a
Create user room key if needed (#3108) 2023-06-13 14:19:31 +02:00
Till 82b73a4906
Add sender_key to ClientEvent (#3110) 2023-06-13 12:50:22 +02:00
santhoshivan23 44beddc287 remove unused code 2023-06-12 18:31:42 +05:30
santhoshivan23 f6dbc84f4d added sqlite support 2023-06-12 18:20:14 +05:30
santhoshivan23 19fc59d3d2
Merge branch 'main' into token-registration 2023-06-12 17:44:00 +05:30
devonh 77d9e4e93d
Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
Till 832ccc32f6
Add initial support for storing user room keys (#3098) 2023-06-12 12:45:42 +02:00
Antonio Cheong 5713c5715c
Update sample link (#3107)
Leftover work by f956a8c1d9

Signed-off-by: `Antonio Cheong <acheong@student.dalat.org>`

[skip ci]
2023-06-12 10:51:26 +02:00
santhoshivan23 5e0da6ac0e implement update api 2023-06-11 00:51:51 +05:30
santhoshivan23 31f3125c26 Get and Delete APIs 2023-06-08 19:14:35 +05:30
santhoshivan23 86d2aa41c1 implement filter by valid query param 2023-06-08 10:03:34 +05:30
santhoshivan23 356edeb6b4
Merge branch 'main' into token-registration 2023-06-08 00:49:12 +05:30
santhoshivan23 4b73df5335 Implement ListTokens 2023-06-08 00:39:58 +05:30
devonh 8ea1a11105
Use SenderID Type (#3105) 2023-06-07 17:14:35 +00:00
devonh 7a1fd7f512
PDU Sender split (#3100)
Initial cut of splitting PDU Sender into SenderID & looking up UserID where required.
2023-06-06 20:55:18 +00:00
santhoshivan23 99fa964b62 handle cases when request field is not present 2023-06-06 22:21:21 +05:30
santhoshivan23 8972c4b20d format admin.go 2023-06-06 21:57:34 +05:30
santhoshivan23 fe2464fd4b Move DB Layer to UserAPI 2023-06-06 21:52:05 +05:30
Till 725ff5567d
Make StrictValidityChecking a function (#3092)
Companion PR to https://github.com/matrix-org/gomatrixserverlib/pull/388
2023-06-06 15:16:55 +02:00
santhoshivan23 6cd6af150b refactoring 2023-06-06 00:18:05 +05:30
santhoshivan23 2c339a6bfd refactoring, implement db layer 2023-06-05 23:10:27 +05:30
santhoshivan23 f5039be461 refactoring 2023-06-04 22:12:44 +05:30
santhoshivan23 6205ffb8c0 refactoring 2023-06-04 22:08:21 +05:30
santhoshivan23 80ceb18c78 CreateNewToken API: Initial Changes 2023-06-03 21:47:24 +05:30
Till d11da6ec7c
Fix newly found linter issues (#3099)
Fixes the issues found in
https://github.com/matrix-org/dendrite/actions/runs/5155539352/jobs/9285342056#step:5:22.
Only naked returns in longer functions.
2023-06-02 15:48:04 +02:00
devonh ea6b368ad4
Move Invite logic to GMSL (#3086)
This is both the federation receiving & sending side logic (which were
previously entangeld in a single function)
2023-05-31 16:33:49 +00:00
devonh cbdc601f1b
Move CreateRoom logic to Roomserver (#3093)
Move create room logic over to roomserver.
2023-05-31 15:27:08 +00:00
Till 61341aca50
Add tests for the UpDropEventReferenceSHAPrevEvents migration (#3087)
... as they could fail if there are duplicate events in
`roomserver_previous_events`.
This fixes the migration by trying to combine the `event_nids` if
possible (same room) as mentioned by @kegsay in
https://github.com/matrix-org/dendrite/pull/3083#discussion_r1195508963
2023-05-30 18:05:48 +02:00
Till 3dcca4017c
Fix potential state reset when trying to join a room (#3040)
When trying to join a room in short sequence, it is possible that a
state reset occurs. This fixes it by using `singleflight`.
2023-05-30 15:27:11 +02:00
Till f956a8c1d9
Docs restructure (#2953)
Needs to be merged into `gh-pages` later on.
2023-05-30 10:02:53 +02:00
Till 11b557097c
Drop reference_sha column (#3083)
Companion PR to https://github.com/matrix-org/gomatrixserverlib/pull/383
2023-05-24 12:14:42 +02:00
Till 5d6221d191
Move MakeLeave to GMSL (#3085)
Basically the same API shape as for `/make_join`
https://github.com/matrix-org/gomatrixserverlib/pull/385
2023-05-23 19:37:04 +02:00
devonh 2eae8dc489
Move SendJoin logic to GMSL (#3084)
Moves the core matrix logic for handling the send_join endpoint over to
gmsl.
2023-05-19 16:27:01 +00:00