Till Faelligen
5a346e536f
Move building an invite to it's own function, for reusability
2022-02-18 15:11:36 +01:00
Till Faelligen
ff724bce4b
Merge branch 'main' of github.com:matrix-org/dendrite into s7evink/server-notices
2022-02-18 14:25:46 +01:00
Neil Alexander
9bd5e414c9
Missing commit from #2186
2022-02-18 11:32:45 +00:00
Neil Alexander
153bfbbea5
Merge both user API databases into one ( #2186 )
...
* Merge user API databases into one
* Remove DeviceDatabase from config
* Fix tests
* Try that again
* Clean up keyserver device keys when the devices no longer exist in the user API
* Tweak ordering
* Fix UserExists flag, device check
* Allow including empty entries so we can clean them up
* Remove logging
2022-02-18 11:31:05 +00:00
kegsay
0a7dea4450
Update /whoami response to match Spec v1.2 ( #2201 )
...
Basically include `is_guest` and `device_id`. The latter is
needed for https://github.com/matrix-org/complement/pull/305
2022-02-18 11:28:02 +00:00
Neil Alexander
131bedc1a1
Remove event type and state key caches ( #2200 )
...
* Don't proactively cache event types and state keys when we don't know if the transaction has persisted yet
* Remove event type and state key caches altogether
2022-02-18 10:58:41 +00:00
Neil Alexander
e1eb5807b6
Allow preventing guest registration ( #2199 )
...
* Allow disabling guest registration separately
* Update sample config
* Set `guests_disabled` to `true` in the sample config
2022-02-18 10:12:26 +00:00
Till Faelligen
2dc7088de2
Add custom error for rejecting server notice invite
2022-02-18 10:11:55 +01:00
Till Faelligen
2e1e0c81a1
Add check for admin account
...
Enable server notices for CI
Return same values as Synapse
2022-02-18 09:23:58 +01:00
Till Faelligen
f4cca68939
Merge main
2022-02-18 07:54:17 +01:00
Till Faelligen
2566402c21
Merge branch 's7evink/server-notices' of github.com:matrix-org/dendrite into s7evink/server-notices
2022-02-18 07:37:36 +01:00
kegsay
5dd203fde3
Listen for /v3 on CSAPI ( #2197 )
...
* Listen for /v3 on CSAPI
* Docs
* More docs
* Rename path variable to fix key backup tests
* Update routing.go
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-02-17 17:38:22 +00:00
Neil Alexander
0b123b29f5
Use process context for roomserver input ( #2198 )
2022-02-17 15:58:54 +00:00
Neil Alexander
140077265e
Make GetUserDevices logging entry more useful
2022-02-17 15:02:06 +00:00
Neil Alexander
7dfc7c3d70
Don't re-send sent events in add_state_events ( #2195 )
...
* Only add events to `add_state_events` that haven't already been sent to the roomserver output before
* Filter on event NIDs instead, hopefully bring joy to SQLite
* UnsentFilter, review comments
2022-02-17 13:53:48 +00:00
Neil Alexander
353168a9e9
Fix potential panic in NewStreamTokenFromString caused by off-by-one error ( #2196 )
...
Line 291 could panic when trying to set `positions[i]` if `i == len(positions)`.
2022-02-17 13:25:41 +00:00
S7evinK
89b7519089
Raise waitTime for network related issues ( #2192 )
2022-02-17 13:15:49 +00:00
Neil Alexander
934491eda5
Update NATS Server to v2.7.2 ( #2193 )
...
* Update NATS JetStream to v2.7.2
* Remove deprecated option
2022-02-17 13:15:35 +00:00
S7evinK
f51e2a99e9
Remove outbound proxy, http.ProxyFromEnvironment is now used ( #2191 )
2022-02-17 13:54:29 +01:00
kegsay
a4681bc7f7
Set 'complement' as the shared secret for CI ( #2194 )
2022-02-17 10:59:44 +00:00
kegsay
751164be60
Merge branch 'main' into s7evink/server-notices
2022-02-17 09:50:00 +00:00
Till Faelligen
1edd981223
Merge branch 'main' into s7evink/server-notices
2022-02-16 18:59:13 +01:00
S7evinK
5a39512f5f
Add account type ( #2171 )
...
* Add account_type for sqlite3
* Add account_type for postgres
* Remove CreateGuestAccount from interface
* Add new AccountTypes & update test
* Use newly added AccountType for account creation
* Add migrations
* Reuse type
* Add AccounnType to Device, so it can be verified on requests
* Rename migration, add missing update for appservices
* Rename sqlite3 migration
* Add missing AccountType to return value
* Update sqlite migration
Change allowance check on /admin/whois
* Fix migration, add IS NULL
* Move accountType to completeRegistration
* Fix migrations
* Add passing test
2022-02-16 18:55:38 +01:00
S7evinK
e9b672a34e
Make "Device list doesn't change if remote server is down" pass ( #2190 )
2022-02-16 16:56:45 +00:00
Neil Alexander
fa1e12b503
Don't panic on retiring an invite that we haven't seen yet ( #2189 )
2022-02-16 11:56:08 +00:00
kegsay
f92b048fec
Add host mount compatible Complement image ( #2187 )
2022-02-15 17:40:48 +00:00
Till Faelligen
6d4107086e
Merge branch 'main' of github.com:matrix-org/dendrite into s7evink/server-notices
2022-02-15 17:59:19 +01:00
Till Faelligen
c3c55eb704
Use reserver username
...
Check that we actually got roomData
2022-02-15 17:58:36 +01:00
Till Faelligen
c08a8db23e
Only create the account when starting
...
Only add routes if sever notices are enabled
2022-02-15 17:56:38 +01:00
Neil Alexander
4c8c53244e
Update prometheus
2022-02-15 16:27:22 +00:00
Neil Alexander
e22e87c012
Update to matrix-org/gomatrixserverlib@20632dd
2022-02-15 11:14:43 +00:00
Till Faelligen
92e93191e2
Update test
2022-02-15 09:50:26 +01:00
Till Faelligen
ca932c23ce
Merge branch 'main' of github.com:matrix-org/dendrite into s7evink/server-notices
2022-02-15 09:48:43 +01:00
Till Faelligen
fe6a47af28
Set the avatar on account creation
2022-02-14 08:59:06 +01:00
Till Faelligen
04ecd975a9
Update config
2022-02-14 08:58:54 +01:00
Till Faelligen
09967d12e0
Update comments
2022-02-14 08:44:20 +01:00
Neil Alexander
5106cc807c
Ensure only one transaction is used for RS input per room ( #2178 )
...
* Ensure the input API only uses a single transaction
* Remove more of the dead query API call
* Tidy up
* Fix tests hopefully
* Don't do unnecessary work for rooms that don't exist
* Improve error, fix another case where transaction wasn't used properly
* Add a unit test for checking single transaction on RS input API
* Fix logic oops when deciding whether to use a transaction in storeEvent
2022-02-11 17:40:14 +00:00
S7evinK
a4e7d471af
Remove FederationDisabled error type ( #2174 )
2022-02-11 18:15:44 +01:00
Till Faelligen
11cab9c469
Merge branch 's7evink/server-notices' of github.com:matrix-org/dendrite into s7evink/server-notices
2022-02-11 17:41:56 +01:00
Till Faelligen
6373a73ce1
Rename function/variables
2022-02-11 17:40:31 +01:00
S7evinK
6b7747e722
Merge branch 'main' into s7evink/server-notices
2022-02-11 17:30:55 +01:00
kegsay
a566d53b0b
Don't allow parallel complement tests ( #2169 )
...
Fixes flakiness seemingly. See https://github.com/matrix-org/synapse/pull/11910
2022-02-11 16:26:23 +00:00
Till Faelligen
6c1b9a6c5d
Merge branch 'main' of github.com:matrix-org/dendrite into s7evink/server-notices
2022-02-11 17:20:39 +01:00
Till Faelligen
c9640aabb2
Set the user api when starting
2022-02-11 17:18:06 +01:00
Till Faelligen
bfe6524e36
Validate the request
2022-02-11 17:17:38 +01:00
Till Faelligen
baefab89c9
Implement unspecced server notices
2022-02-11 17:13:45 +01:00
Till Faelligen
e2bf73fce2
Slightly refactor sendEvent and CreateRoom so it can be reused
2022-02-11 17:12:49 +01:00
Till Faelligen
2819183c2b
Update config
2022-02-11 16:50:37 +01:00
Till Faelligen
857cfd73ad
Disallow rejecting "server notice" invites
2022-02-11 16:48:24 +01:00
Neil Alexander
88b45d5cd2
Drop m.room.create events in federation /send transaction ( #2179 )
2022-02-11 15:18:14 +00:00