Commit graph

1,958 commits

Author SHA1 Message Date
Tulir Asokan
591ac60f0c bridgev2/portal: only forward backfill after room creation if enabled in config
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-20 17:37:21 +03:00
Tulir Asokan
4b7fa711ce changelog: update 2024-08-20 16:29:41 +03:00
Tulir Asokan
9e1a8cd56e bridgev2/matrix: use cached member list if available 2024-08-20 16:21:41 +03:00
Tulir Asokan
063d374226 bridgev2/backfillqueue: don't try to backfill with non-logged-in client
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-20 15:47:50 +03:00
Tulir Asokan
f4d4637625 bridgev2/portal: don't create backfill task before portal room 2024-08-20 13:56:52 +03:00
Tulir Asokan
4523807e56 bridgev2/portal: slightly refactor power level checks 2024-08-20 13:56:19 +03:00
Tulir Asokan
a614668174 bridgev2/matrix: remove custom buffer in stream upload
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-20 01:20:39 +03:00
Tulir Asokan
feff2d5886 bridgev2/matrix: don't delete temp file before async upload completes 2024-08-20 01:00:10 +03:00
Tulir Asokan
38278ef37d bridgev2/unorganized-docs: update features 2024-08-20 00:53:07 +03:00
Tulir Asokan
ce2ffd8232
bridgev2/matrix: add new stream upload that uses a writer instead of a reader (#269) 2024-08-20 00:52:54 +03:00
Tulir Asokan
79527df26e bridgev2/matrixinterface: temporarily remove stream upload from interface
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-19 20:13:38 +03:00
Tulir Asokan
20ce646435 bridgev2/matrixinterface: add stream upload method 2024-08-19 19:33:26 +03:00
Tulir Asokan
420db4fefb bridgev2/matrix: reduce upload semaphore size 2024-08-19 19:04:02 +03:00
Tulir Asokan
3481f29c1a bridgev2/matrix: disable megolm session destination tracking 2024-08-19 19:02:14 +03:00
Tulir Asokan
e217a5f8cd bridgev2/matrix: add missing semaphore release 2024-08-19 18:10:03 +03:00
Tulir Asokan
7f392b17b6 bridgev2/matrix: prevent too many async uploads at once 2024-08-19 17:52:54 +03:00
Brad Murray
b4927420cc
client: don't retry requests if context is cancelled (#268) 2024-08-19 16:23:25 +03:00
Tulir Asokan
f813c4f8b0 statestore: log warning if UpdateStateStore has unexpected content type
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-19 11:29:06 +03:00
Tulir Asokan
6444f9bccc bridgev2/matrix: add double puppet value for redactions
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2024-08-17 23:30:46 +03:00
Tulir Asokan
2355d70426 bridgev2/matrix: return error if trying to encrypt message without encryption enabled
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-17 14:12:53 +03:00
Sumner Evans
d40aa8c7c6
verificationhelper: add function to dismiss verification request without cancelling it
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-08-16 09:10:03 -06:00
Sumner Evans
6946d3cdb5
verificationhelper: send cancellations to other devices if cancelled from one device
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-08-16 09:10:03 -06:00
Tulir Asokan
329157afde Bump version to v0.20.0
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
v0.20.0
2024-08-16 11:54:48 +03:00
Tulir Asokan
e50a705cec client: update beeper inbox request content
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-15 16:10:27 +03:00
Tulir Asokan
cb8583825d bridgev2: allow network connectors to provide message stream order 2024-08-15 15:11:03 +03:00
Tulir Asokan
a3f3445657 changelog: update 2024-08-15 14:32:39 +03:00
Tulir Asokan
9e031496a0 dependencies: update 2024-08-15 13:42:11 +03:00
Tulir Asokan
2d3862a65f bridgev2/portal: clear userportal cache when deleting portal 2024-08-15 13:40:14 +03:00
Tulir Asokan
59efa808cb main: drop support for Go 1.21
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-15 13:12:01 +03:00
Tulir Asokan
e521ab675c crypto/keysharing: improve rejection message when recipient tracking is enabled
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-14 22:46:38 +03:00
Tulir Asokan
0ea4b348fe bridgev2/backfill: add missing check to thread backfill 2024-08-14 21:28:11 +03:00
Tulir Asokan
3cc3f95017 bridgev2: ensure m.mentions is always set 2024-08-14 18:58:28 +03:00
Tulir Asokan
169e2db7ed bridgev2/backfill: send thread messages in same batch as root
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-14 14:54:56 +03:00
Tulir Asokan
d791a70ade federation: add query profile and directory wrappers 2024-08-14 14:16:09 +03:00
Tulir Asokan
9b517179dc federation: fix signing requests with no body 2024-08-14 14:15:56 +03:00
Tulir Asokan
4f5dea4ca2 bridgev2/networkinterface: allow network connector to customize m.bridge data
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-13 19:43:51 +03:00
Tulir Asokan
0df3f47c27 bridgev2: add hack for messages sent by nobody 2024-08-13 18:53:31 +03:00
Tulir Asokan
755ba0f7d6 bridgev2: add config option to only bridge tag/mute on room create 2024-08-13 16:23:39 +03:00
Tulir Asokan
81be525ab6 bridgev2/backfill: include portal key in backfill queue context logger 2024-08-13 15:55:04 +03:00
Tulir Asokan
2883ac8172 bridgev2/backfill: ignore messages with no parts 2024-08-13 15:48:25 +03:00
Tulir Asokan
47bdb8b2f6 bridgev2/matrix: send message status in background 2024-08-13 15:06:01 +03:00
Tulir Asokan
b899ef773f bridgev2/matrix: enable handling power level events 2024-08-13 15:05:44 +03:00
Tulir Asokan
8f5b3ac66f bridgev2/portal: fix last read TS when bridging read receipts from Matrix 2024-08-13 15:05:28 +03:00
Tulir Asokan
1e98cb6a2e bridgev2: add support for handling Matrix power level changes
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-12 22:31:18 +03:00
Tulir Asokan
091a18d448 bridgev2/backfill: allow resync events to have bundled backfill data as an optimization
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
The network connector can provide arbitrary data in RemoteChatResync
events, which is passed to FetchMessages if the event triggers a
backfill. The network connector can then read the data and avoid
refetching those bundled messages.
2024-08-12 19:09:06 +03:00
Tulir Asokan
41f0abd38a bridgev2/matrix: ignore already in room errors when sending invites 2024-08-12 14:32:42 +03:00
Tulir Asokan
7a2b6a93bc bridgev2/errors: add helper to append to RespError message 2024-08-12 13:53:55 +03:00
Tulir Asokan
e13771ff61 dependencies: update
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-11 21:49:47 +03:00
Tulir Asokan
4112286f55 bridgev2/matrix: update nocrypto build tag
Fixes mautrix/slack#55
2024-08-11 21:32:41 +03:00
Tulir Asokan
48b08ad8e9 errors: add status codes to predefined error variables
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-08-10 23:30:07 +03:00