Neil Alexander
74cfc37116
Try QueryMembershipForUser instead
2021-03-03 12:21:47 +00:00
Neil Alexander
1c5de02615
Comments
2021-03-03 11:56:37 +00:00
Neil Alexander
f241ec581a
Update appserviceJoinedAtEvent
2021-03-03 11:55:29 +00:00
Neil Alexander
1b580b30b2
Tweaks in client API
2021-03-03 11:48:41 +00:00
Neil Alexander
078aa09a5c
Update QueryMembershipsForRoom
2021-03-03 11:47:58 +00:00
Neil Alexander
7834682981
Merge branch 'master' into hs/as-transaction-send-if-in-room
2021-03-03 11:43:43 +00:00
stoically
41fd15b9b6
Docker fix and tweak ( #1781 )
...
* Fix image building with recent docker version
* Mount media path in docker to prevent data loss
2021-03-03 11:20:40 +00:00
Neil Alexander
25dc99f1b0
Upgrade dependencies ( #1779 )
2021-03-03 11:08:41 +00:00
Kegsay
586cc5be5e
Use new path for MSC2946 ( #1778 )
...
* Use new path for MSC2946
* Update GMSL
2021-03-02 16:41:28 +00:00
Neil Alexander
6a35d9f1b1
Version 0.3.11
2021-03-02 11:46:35 +00:00
Neil Alexander
81312b8a78
Return the current OTK count on an empty upload request ( #1774 )
...
* Always return OTK counts
* Fix parameter ordering
* Send IDs over to keyserver internal API
* Review comments
* Fix syntax error
* Fix panic, hopefully
* Require user ID to be set
* Fix user API call
2021-03-02 11:40:20 +00:00
Neil Alexander
f5cf241877
Fix user registration bug ( #1777 )
2021-03-02 10:43:25 +00:00
Will Hunt
5058157cfa
Check membership in GetMemberships
2021-02-26 16:43:40 +00:00
Will Hunt
ea0eae20f5
Rename to appserviceJoinedAtEvent
2021-02-26 16:21:46 +00:00
Will Hunt
768bd9322f
Merge remote-tracking branch 'origin/master' into hs/as-transaction-send-if-in-room
2021-02-26 16:19:10 +00:00
Will Hunt
1da0a21923
Changes that I made a long time ago
2021-02-26 16:18:02 +00:00
Neil Alexander
3069079e37
Revert quic-go dependency update
2021-02-18 10:18:14 +00:00
Neil Alexander
db637515a5
Update libp2p dependencies
2021-02-18 10:14:24 +00:00
Neil Alexander
11830fd4af
Fix transitive dependency for P2P demo
2021-02-18 09:45:55 +00:00
Neil Alexander
4c0103a2d5
Don't close channels when clearing queue (we might race and panic, when the GC will still clean it up for us anyway)
2021-02-18 09:26:40 +00:00
Neil Alexander
2fdc318f2c
Version 0.3.10
2021-02-17 16:05:04 +00:00
Kegan Dougal
bf9c530fdb
Unbreak DendriteJS.Dockerfile; Riot is now Element
2021-02-17 15:45:50 +00:00
Marco Kundt
d1496793b9
fix database names to reflect renaming ( #1636 )
...
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-02-17 15:20:06 +00:00
Neil Alexander
c9f305f254
Don't exclude an event from sync if it was previously not excluded ( #1767 )
2021-02-17 15:18:41 +00:00
Neil Alexander
8b5cd256cb
Don't hold destination queues in memory forever ( #1769 )
...
* Don't hold destination queues in memory forever
* Close channels
* Fix ordering
* Clear more aggressively
* clearQueue only called by defer so should be safe to delete queue in any case
* Wake queue when created, otherwise cleanup doesn't get called in all cases
* Clean up periodically, we hit a race condition otherwise
* Tweaks
* Don't create queues for blacklisted hosts
* Check blacklist properly
2021-02-17 15:16:35 +00:00
darkgallium
da797c7998
Retrieve remote file size without the Content-Size header ( #1537 )
...
* Get downloaded file size regardless of the Content-Size header
Signed-off-by: Florian Le Minoux <darkgallium+git@deuxfleurs.fr>
* fixing lint issues
* Don't exhaust memory for large files, don't limit more than necessary
* Don't use errors.Wrap in download.go
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2021-02-17 13:54:53 +00:00
Neil Alexander
2386e0c7af
Gradually evict oldest cache entries ( #1768 )
...
* Gradually evict oldest cache entries
* Keep the remaining 10% of cached entries
2021-02-17 13:50:27 +00:00
Neil Alexander
5d74a1757f
Don't query for servers so often in /send ( #1766 )
...
* Look up servers less often, don't hit API for missing auth events unless there are actually missing auth events
* Remove ResolveConflictsAdhoc (since it is already in GMSL), other tweaks
* Update gomatrixserverlib to matrix-org/gomatrixserverlib#254
* Fix resolve-state
* Initialise t.servers on first use
2021-02-16 17:12:17 +00:00
Michael Telatynski
f448e8972a
Implement /createRoom power_level_content_override ( #1761 )
...
* Implement /createRoom power_level_content_override
* delint
* Skip having to re-marshal PowerLevelContentOverride by making use of `json.RawMessage`
2021-02-12 09:43:31 +00:00
David Florness
85aaaf9bb9
Fix a few indentation mistakes ( #1752 )
...
Signed-off-by: David Florness <david@florness.com>
2021-02-12 09:25:35 +00:00
Kegan Dougal
9a199ba179
Remove 100 default
2021-02-06 17:05:00 +00:00
Kegan Dougal
82df194858
Increase limit
2021-02-06 16:56:55 +00:00
Neil Alexander
02e6d89cc2
Fix crash in membership updater ( #1753 )
...
* Fix nil pointer exception in membership updater
* goimports
2021-02-06 11:49:18 +00:00
Neil Alexander
397b158c05
Version 0.3.9
2021-02-04 12:39:43 +00:00
Neil Alexander
bd72ed50d4
Reduce log level of 'Failed to send transaction' log line, since quite often it is flooding logs for dead servers
2021-02-04 12:25:31 +00:00
Neil Alexander
6e44450cc9
Don't re-request state events that are already in the timeline ( #1739 )
...
* Don't request state events if we already have the timeline events (Postgres only)
* Rename variable
* nocyclo
* Add SQLite
* Tweaks
* Revert query change
* Don't dedupe if asking for full state
* Update query
2021-02-04 12:20:37 +00:00
Neil Alexander
6099379ea4
Remove rooms table from federation sender ( #1751 )
...
* Remove last sent event ID column from federation sender
* Remove EventIDMismatchError
* Remove the federationsender rooms table altogether, it's useless
* Add migration
* Fix migrations
* Fix migrations
2021-02-04 11:52:49 +00:00
Neil Alexander
b7e3b81a22
Fix ON CONFLICT on sync API account data ( #1745 ) ( #1750 )
2021-02-04 11:45:49 +00:00
Neil Alexander
de5f22a469
Remove redundant check ( #1748 )
2021-02-04 11:12:52 +00:00
Neil Alexander
369d3939fd
Drop state events we can't auth instead of failing altogether
2021-01-29 16:33:59 +00:00
Neil Alexander
62a325ded8
Complete sync performance ( #1741 )
...
* Parallelise PDU stream fetching for complete sync
* Fixes
* Fixes
* Worker queue
* Workers
* Don't populate device list changes on complete sync
* Don't fast-forward typing notifications either on complete sync
* Revert "Don't fast-forward typing notifications either on complete sync"
This reverts commit 01471f7843 .
* Comments
2021-01-29 16:32:54 +00:00
Kegsay
6d1c6f29e0
Add m.room.create to invite stripped state ( #1740 )
...
MSC1772 needs this because the create event contains info on if
the room is a space or not. The create event itself isn't sensitive
so other people may find this useful too.
2021-01-29 11:36:26 +00:00
Neil Alexander
61090cbe35
Version 0.3.8
2021-01-28 13:37:50 +00:00
Neil Alexander
d56a5a6509
Fix well-known lookups
2021-01-28 13:25:45 +00:00
Neil Alexander
e14e9a1606
Version 0.3.7
2021-01-26 13:13:48 +00:00
Neil Alexander
9f443317bc
Graceful shutdowns ( #1734 )
...
* Initial graceful stop
* Fix dendritejs
* Use process context for outbound federation requests in destination queues
* Reduce logging
* Fix log level
2021-01-26 12:56:20 +00:00
Neil Alexander
64fb6de6d4
Don't retrieve same state events over and over again ( #1737 )
2021-01-26 09:12:17 +00:00
Kegsay
ef9d5ad4fe
Check peek state response and refactor checking send_join response ( #1732 )
2021-01-22 17:16:35 +00:00
Neil Alexander
6757b67a32
NewClient and NewFederationClient updates ( #1730 )
...
* Use matrix-org/gomatrixserverlib#252
* Add missing WithSkipVerify to test
* Functions instead
* Update gomatrixserverlib to matrix-org/gomatrixserverlib#252
* Fix disabling TLS validation
2021-01-22 16:09:05 +00:00
Kegsay
93942f8ab6
Gate peeking behind msc flags ( #1731 )
2021-01-22 16:08:47 +00:00