Neil Alexander
6e45fa082c
Update comments in calculateLatest
2020-10-07 13:27:02 +01:00
Neil Alexander
7003be4559
Don't roll back
2020-10-07 13:07:33 +01:00
Neil Alexander
65f65163f5
Fix deadlock
2020-10-07 12:58:50 +01:00
Neil Alexander
1c6924a4a3
Fix unexpected fallthrough
2020-10-07 12:47:32 +01:00
Neil Alexander
a270a1012a
Use latest events updater to row-lock prev events
2020-10-07 12:46:01 +01:00
Neil Alexander
4e96930f55
Create previous event references in StoreEvent
2020-10-07 11:58:43 +01:00
Neil Alexander
994be80b7a
Update error
2020-10-07 11:40:09 +01:00
Neil Alexander
a2342f12df
Update error
2020-10-07 11:32:02 +01:00
Neil Alexander
fafee7060f
Use updater txn
2020-10-07 11:28:22 +01:00
Neil Alexander
cc4f5fb531
Deep forward extremity calculation
2020-10-07 11:17:01 +01:00
Neil Alexander
f7c15071de
Don't return 500s on checking to see if a remote server is allowed to see an event we don't know about ( #1490 )
2020-10-07 10:30:27 +01:00
Kegsay
0f7e707f39
Optimise servers to backfill from ( #1485 )
...
- Prefer perspective servers if they are in the room.
- Limit the number of backfill servers to 5 to avoid taking too long.
2020-10-06 18:09:02 +01:00
Neil Alexander
4feff8e8d9
Don't give up if we fail to fetch a key ( #1483 )
...
* Don't give up if we fail to fetch a key
* Fix logging line
* furl nolint
2020-10-06 17:59:08 +01:00
Neil Alexander
ee79d662e7
Update to matrix-org/gomatrixserverlib#233
2020-10-06 15:37:31 +01:00
Neil Alexander
d69eba10e5
Add furl ( #1482 )
...
* Add furl
* Add POST support
2020-10-06 14:51:32 +01:00
Kegsay
1eaf7aa27e
Use [] not null when there are no devices ( #1480 )
2020-10-06 11:05:15 +01:00
Neil Alexander
bf90db5b60
Remove KindRewrite ( #1481 )
...
* Don't send rewrite events
* Remove final traces of rewrite events
* Remove test that is no longer needed
* Revert "Remove test that is no longer needed"
This reverts commit 9a45babff6 .
* Update test to use KindOutlier
2020-10-06 11:05:00 +01:00
Neil Alexander
8fb74fe99a
Yggdrasil demo tweaks
2020-10-06 10:37:52 +01:00
Neil Alexander
52ddded72d
Update to matrix-org/gomatrixserverlib#232
2020-10-05 17:56:18 +01:00
Neil Alexander
2e71d2708f
Resolve state after event against current room state when determining latest state changes ( #1479 )
...
* Resolve state after event against current room state when determining latest state changes
* Update sytest-whitelist
* Update sytest-whitelist, blacklist
2020-10-05 17:47:08 +01:00
Neil Alexander
4e6b7f726d
Update to matrix-org/gomatrixserverlib#230
2020-10-05 12:42:56 +01:00
S7evinK
2bfab5f58b
Add example goose sqlite3 migration ( #1474 )
...
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
2020-10-05 11:28:10 +01:00
Neil Alexander
c4756eee0e
Don't store backfilled events using request context ( #1478 )
2020-10-05 11:06:31 +01:00
S7evinK
3bd66ff196
Route several paths to sync_api ( #1473 )
2020-10-02 22:35:54 +01:00
Loïck Bonniot
4e8c484618
Implement account deactivation ( #1455 )
...
* Implement account deactivation
See #610
Signed-off-by: Loïck Bonniot <git@lesterpig.com>
* Rename 'is_active' to 'is_deactivated'
Signed-off-by: Loïck Bonniot <git@lesterpig.com>
Co-authored-by: Kegsay <kegan@matrix.org>
2020-10-02 17:18:20 +01:00
Kegsay
279044cd90
Add history visibility guards ( #1470 )
...
* Add history visibility guards
Default to 'joined' visibility to avoid leaking events, until we get
around to implementing history visibility completely. Related #617
* Don't apply his vis checks on shared rooms
* Fix order of checks
* Linting and remove another misleading check
* Update whitelist
2020-10-02 17:08:13 +01:00
Neil Alexander
c870435c17
Update PULL_REQUEST_TEMPLATE.md
2020-10-02 16:56:13 +01:00
Neil Alexander
85c43e1bef
Don't drop federation retries for Yggdrasil demos
2020-10-02 15:14:01 +01:00
Loïck Bonniot
439bc235d7
Add 'completed' field in Interactive Auth API ( #1469 )
...
This field must be present even after authentication failure, as
tested by sytest. This is needed by #1455 .
Signed-off-by: Loïck Bonniot <git@lesterpig.com>
2020-10-02 15:05:23 +01:00
Neil Alexander
fb9a8f215b
Fix initial sync ( #1465 )
...
* Fix complete sync check
* Remove unnecessary 'since' copy
* Fix failing test
* Un-whitelist a couple of tests
Co-authored-by: Kegan Dougal <kegan@matrix.org>
2020-10-02 12:50:58 +01:00
Neil Alexander
1b29e5771f
Fix build.sh
2020-10-02 11:49:13 +01:00
Neil Alexander
28454d6fb7
Log origin in /send
2020-10-02 11:38:35 +01:00
Neil Alexander
92ceb46b49
Update to matrix-org/gomatrixserverlib#227
2020-10-02 09:43:02 +01:00
S7evinK
3e01db0049
Fix golangci-lint issues ( #1464 )
...
* Fix S1039: unnecessary use of fmt.Sprintf
* Fix S1036: unnecessary guard around map access
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
2020-10-01 20:00:56 +01:00
Neil Alexander
7048532bc4
Update version imprinting ( #1462 )
...
* Add version tag constant
* Update build imprinting
2020-10-01 16:09:11 +01:00
Neil Alexander
dbae85283f
Bring docker sample config into sync with normal one
2020-10-01 15:37:45 +01:00
Neil Alexander
9b2d8f69aa
Update README.md
2020-10-01 15:28:01 +01:00
Neil Alexander
4f87df198a
Update README.md ( #1461 )
...
* Update README.md
* Maybe bullet points
* Tweaks
* Put the shields back, use text instead, less OCD problems
* One more tweak
2020-10-01 15:27:16 +01:00
Neil Alexander
b471d4d77a
Set internal HTTP API timeout to 10 minutes ( #1459 )
2020-10-01 15:00:35 +01:00
Kegsay
378a0520be
Add custom issue templates; fixes #1421 ( #1460 )
2020-10-01 15:00:16 +01:00
Neil Alexander
43b3c4a2fc
Fix bugs in nginx sample configs
2020-10-01 14:41:08 +01:00
Neil Alexander
cb4b93b16c
Add nginx sample reverse proxy configs ( #1458 )
...
* Add nginx sample reverse proxy configs
* Add line breaks at end of files
2020-10-01 14:33:48 +01:00
Neil Alexander
b1d5360335
Update HTTP clients ( #1457 )
...
* Update gomatrixserverlib
* Use separate HTTP client for API calls, set User-Agent for outbound HTTP requests
2020-10-01 11:55:17 +01:00
Neil Alexander
91fc1f1c92
Fix bug in error handling in SQLite InsertPreviousEvent ( #1456 )
2020-10-01 10:55:00 +01:00
Neil Alexander
fed3ebd2f1
CodeQL analysis
2020-09-30 21:18:35 +01:00
Neil Alexander
0caad67abc
Consider old keys in handleLocalKeys ( #1454 )
2020-09-30 19:52:36 +01:00
Neil Alexander
05e5386fb0
Update gobind database paths
2020-09-30 15:57:31 +01:00
Neil Alexander
135b5e264f
Fix panic on verifySigError in fetching missing events
2020-09-30 13:51:54 +01:00
Neil Alexander
beaf4cc00f
Fix perspective fetching
2020-09-29 17:34:48 +01:00
Neil Alexander
d63d7c5640
Tweak log level of a fairly common log line
2020-09-29 17:08:47 +01:00