Commit graph

433 commits

Author SHA1 Message Date
Roman Isaev
3619a6de8d
mas: refactoring 2025-01-15 19:35:24 +00:00
Roman Isaev
418c584e40
mas: TestAdminAllowCrossSigningReplacementWithoutUIA 2025-01-15 18:54:59 +00:00
Roman Isaev
5dd8568ecd
mas: TestAdminCreateOrModifyAccount 2025-01-15 15:41:11 +00:00
Roman Isaev
e8902dad02
mas: TestAdminRetrieveAccount 2025-01-15 13:30:47 +00:00
Roman Isaev
4193b7b197
mas: TestAdminDeactivateAccount 2025-01-15 13:12:13 +00:00
Roman Isaev
0db7647f46
mas: TestAdminUserDevicesDelete 2025-01-15 13:02:28 +00:00
Roman Isaev
f1de5aa838
mas: TestAdminUserDeviceDelete 2025-01-15 12:14:14 +00:00
Roman Isaev
59f73b1ff6
mas: TestAdminUserDeviceRetrieveCreate 2025-01-15 04:00:18 +00:00
Roman Isaev
90e3de3223
mas: TestAdminCheckUsernameAvailable 2025-01-15 03:21:12 +00:00
Roman Isaev
930daa1090
mas: move org.matrix.cross_signing_reset const from logintypes.go to key_crosssigning.go 2025-01-10 00:51:29 +00:00
Roman Isaev
0990676466
linter fixes 2025-01-09 01:29:57 +00:00
Roman Isaev
fb15db7f7a
unit tests fix 2025-01-08 10:11:27 +00:00
Roman Isaev
7eec60e2ef
mas: reorganise endpoints 2025-01-07 02:28:20 +00:00
Roman Isaev
811a504e01
mas: handle 3pids from mas 2025-01-06 03:19:47 +00:00
Roman Isaev
5cffc2c257
mas: fix displayname handling 2025-01-06 03:18:31 +00:00
Roman Isaev
cc7deb22ad
mas: added support of msc3861 to /keys/device_signing/upload endpoint
this change is based mostly on changes made in synapse https://github.com/element-hq/synapse/blob/develop/synapse/rest/client/keys.py#L392
2025-01-05 02:42:20 +00:00
Roman Isaev
9b064b1572
minor refactoring 2025-01-05 02:38:07 +00:00
Roman Isaev
48f3cd3367
mas: added /admin/v1/deactivate/{userID} endpoint 2025-01-05 02:35:37 +00:00
Roman Isaev
c06e0aa206
refactor logger calls 2025-01-05 02:24:40 +00:00
Roman Isaev
803cce882f
mas: added admin's delete devices endpoint 2025-01-01 02:26:15 +00:00
Roman Isaev
f4ff4266f5
mas: refactor admin user device handler 2025-01-01 00:37:03 +00:00
Roman Isaev
ff63e7fa98
mas: modify PUT /profile/{userID}/displayname endpoint
Extended logic of the endpoint in order to make it compatible with
MAS
2024-12-30 20:40:00 +00:00
Roman Isaev
be8d490e56
mas: implemented PUT /admin/v2/users/{userID} endpoint
MAS requires this endpoint to fetch the data for the account management page
2024-12-30 17:14:04 +00:00
Roman Isaev
9d9841d02e
mas: added "admin's replacement without uia" endpoint
i.e. /_synapse/admin/v1/users/{userID}/_allow_cross_signing_replacement_without_uia
2024-12-30 13:34:21 +00:00
Roman Isaev
63a199cec3
mas: first successful attempt of login with via mas 2024-12-29 23:53:37 +00:00
Roman Isaev
e1dfe62b20
mas: rename msc2965 to msc3861 2024-12-22 00:35:04 +00:00
Roman Isaev
2c47959600
mas: added username_available endpoint 2024-12-22 00:23:25 +00:00
Roman Isaev
ba542fedcd
mas: added /auth_issuer endpoint 2024-12-21 01:00:13 +00:00
Neil
72039f651e
Update dependencies (#3449)
Signed-off-by: Neil Alexander <git@neilalexander.dev>

---------

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2024-12-15 11:27:27 +01:00
Johannes Marbach
7acf32f24d
Add via parameter on join room requests as per MSC4156 (#3441)
This implements
[MSC4156](https://github.com/matrix-org/matrix-spec-proposals/pull/4156)
which will ship with Matrix 1.12 and is the continuation of
https://github.com/matrix-org/dendrite/pull/3438.

### Pull Request Checklist

<!-- Please read
https://matrix-org.github.io/dendrite/development/contributing before
submitting your pull request -->

* [ ] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement) for this PR _or_ I have
justified why this PR doesn't need tests
* [x] Pull request includes a [sign off below using a legally
identifiable
name](https://matrix-org.github.io/dendrite/development/contributing#sign-off)
_or_ I have already signed off privately

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
Co-authored-by: Till <2353100+S7evinK@users.noreply.github.com>
2024-12-09 20:31:20 +01:00
Till Faelligen
11b48749bf
Fix linting 2024-11-14 16:40:08 +01:00
Quentin Gliech
075b236155
Update the license headers to mention the commercial license 2024-10-18 16:14:08 +02:00
Quentin Gliech
891950f7b6
Replace references to the repository 2024-10-17 17:34:12 +02:00
Quentin Gliech
6e6c3de0a6
Rename the go package
github.com/matrix-org/dendrite to github.com/element-hq/dendrite
2024-10-17 17:33:45 +02:00
Quentin Gliech
8b769d2cc4
Fixup missed license headers 2024-10-17 17:21:25 +02:00
Quentin Gliech
6bfe946bd2
Update the copyright headers in all files 2024-10-17 17:16:37 +02:00
Till
7a4ef240fc
Implement MSC3916 (#3397)
Needs https://github.com/matrix-org/gomatrixserverlib/pull/437
2024-08-16 12:37:59 +02:00
jjj333_p
8c6cf51b8f
Fixing Presence Conflicts (#3320)
This is meant to cache client presence for a moment so that it doesn't
oscillate.

Currently Dendrite just federates out whatever presence it gets from the
sync loop, which means if theres any clients attempting to sync without
setting the user online, and there is an online client, it will just
flip back and forth each time one of the clients polls /sync.

This pull request essentially stores in a map when the client last set
online ideally to allow the online client to sync again and set an
online presence before setting idle or offline.

I am not great at programming nor am I familiar with this codebase so if
this pr is just shitwater feel free to discard, just trying to fix an
issue that severely bothers me. If it is easier you can also steal the
code and write it in yourself. I ran the linter, not sure that it did
anything, the vscode go extension seems to format and lint anyways.

I tried to run unit tests but I have no idea any of this thing. it
errors on
`TestRequestPool_updatePresence/same_presence_is_not_published_dummy2
(10m0s)` which I think making this change broke. I am unsure how to
comply, if y'all point me in the right direction ill try to fix it. I
have tested it with all the situations I can think of on my personal
instance pain.agency, and this seems to stand up under all the
previously bugged situations.

~~My go also decided to update a bunch of the dependencies, I hate git
and github and have no idea how to fix that, it was not intentional.~~ i
just overwrote them with the ones from the main repo and committed it,
seems to have done what was needed.

### Pull Request Checklist

<!-- Please read
https://matrix-org.github.io/dendrite/development/contributing before
submitting your pull request -->

* [x] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement) for this PR _or_ I have
justified why this PR doesn't need tests
* [x] Pull request includes a [sign off below using a legally
identifiable
name](https://matrix-org.github.io/dendrite/development/contributing#sign-off)
_or_ I have already signed off privately

Signed-off-by: `Joseph Winkie <jjj333.p.1325@gmail.com>`

---------

Co-authored-by: Till Faelligen <2353100+S7evinK@users.noreply.github.com>
2024-08-03 22:03:39 +02:00
guoguangwu
5216e74b9a
fix: close resp body (#3364)
### Pull Request Checklist

<!-- Please read
https://matrix-org.github.io/dendrite/development/contributing before
submitting your pull request -->

* [ ] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement) for this PR _or_ I have
justified why this PR doesn't need tests
* [ ] Pull request includes a [sign off below using a legally
identifiable
name](https://matrix-org.github.io/dendrite/development/contributing#sign-off)
_or_ I have already signed off privately

Signed-off-by: `Your Name <your@email.example.org>`

Signed-off-by: guoguangwu <guoguangwug@gmail.com>
2024-08-03 21:20:43 +02:00
Alex
9897959731
Fix: Edited messages appear twice in fulltext search (#3363)
As stated in https://github.com/matrix-org/dendrite/issues/3358 the
search response contains both original and edited message.
This PR fixes it by removing of the original message from the fulltext
index after indexing the edit message event.
I also made some cosmetic changes/fixes i found in the code

Signed-off-by: `Alexander Dubovikov <d.lexand@gmail.com>`
2024-07-27 22:30:17 +02:00
Tulir Asokan
9566cc6359
Fix parsing ?ts query param (#3396)
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2024-07-27 20:48:15 +02:00
0x1a8510f2
46902e5766
Take advantage of changes in recent Go versions (#3361)
Given that #2714 wasn't merged but we are now at a minimum supported Go
version of 1.20 (soon to be 1.21), I wanted to carry over some of the
changes. Namely:
- Fix the log typo
- Simplify build constraints for unix
- Use stdlib atomic package

### Pull Request Checklist

<!-- Please read
https://matrix-org.github.io/dendrite/development/contributing before
submitting your pull request -->

* [x] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement) for this PR _or_ I have
justified why this PR doesn't need tests
* [x] Pull request includes a [sign off below using a legally
identifiable
name](https://matrix-org.github.io/dendrite/development/contributing#sign-off)
_or_ I have already signed off privately

Signed-off-by: `0x1a8510f2 <admin@0x1a8510f2.space>`

---------

Co-authored-by: devonh <devon.dmytro@gmail.com>
2024-05-01 00:38:36 +00:00
Till
b732eede27
Fix spaces over federation (#3347)
Fixes #2504

 A few issues with the previous iteration:
- We never returned `inaccessible_children`, which (if I read the code
correctly), made Synapse raise an error and thus not returning the
requested rooms
- For restricted rooms, we didn't return the list of allowed rooms
2024-03-28 20:40:45 +01:00
Till
ad0a7d09e8
Add getting/deleting single event report (#3344)
Based on https://github.com/matrix-org/dendrite/pull/3342

Adds `GET /_synapse/admin/v1/event_reports/{reportID}` and `DELETE
/_synapse/admin/v1/event_reports/{reportID}`
2024-03-22 21:54:29 +00:00
Till
79072c3dcd
Add /_synapse/admin/v1/event_reports endpoint (#3342)
Based on #3340 

This adds a `/_synapse/admin/v1/event_reports` endpoint, the same
Synapse has. This way existing tools also work with Dendrite.
Given this is already getting huge (even though many test lines),
splitting this into two PRs. (The next adds "getting one report" and
"deleting reports")

[skip ci]
2024-03-22 22:32:30 +01:00
Till
b9abbf7b20
Add event reporting (#3340)
Part of #3216 and #3226 

There will be a follow up PR which is going to add the same admin
endpoints Synapse has, so existing tools also work for Dendrite.
2024-03-21 19:27:34 +01:00
Till
f4e77453cb
Speed up start up time by batch querying ACL events (#3334)
This should significantly speed up start up times on servers with many
rooms.
2024-02-21 14:10:22 +01:00
Till
ecb7b383e9
Remove unused token (#3331)
Part of https://github.com/matrix-org/dendrite/issues/3225
2024-02-19 19:19:06 +00:00
Till
e9deb5244e
Fix /createRoom and /invite containing displayname/avatarURL of inviter (#3326)
Fixes #3324
2024-02-13 19:28:52 +01:00
Till
8f68f1ff53
Move /joined_members back to the clientapi/roomserver (#3312)
Partly reverts #2827 by moving `/joined_members` back to the
clientAPI/roomserver
2024-01-25 21:35:05 +01:00