Commit graph

355 commits

Author SHA1 Message Date
Tulir Asokan
98c830181b client: omit large request bodies from logs 2026-02-26 17:40:15 +02:00
Tulir Asokan
a55693bbd7 client,bridgev2/matrix: fix context used for async uploads
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
2026-01-20 12:09:01 +02:00
Tulir Asokan
0b6fa137ce client: add support for sending MSC4354 sticky events
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
2026-01-18 14:49:06 +02:00
Tulir Asokan
3a2c6ae865 client: stabilize MSC4323
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
2026-01-05 14:58:29 +02:00
Tulir Asokan
788151bc50 client: error if Download parameter is empty
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
2025-12-30 22:53:27 +02:00
Nick Mills-Barrett
e7a95b7f97
client: backoff before retrying external upload requests
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
2025-12-08 14:33:02 +00:00
Tulir Asokan
315d2ab17d all: fix staticcheck issues
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
2025-12-08 00:07:25 +02:00
Nick Mills-Barrett
f6d8362278
client: add missing retry cancel check while backing off requests
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
2025-12-05 11:36:43 +00:00
Nick Mills-Barrett
c3b85e8e3c
client: add special error that indicates to retry canceled contexts
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
On it's own this is useless since the retries would all immediately
fail with the canceled context error. The caller is expected to also
set a `UpdateRequestOnRetry` on the client which is used to swap out
the context.
2025-11-26 10:55:36 +00:00
Tulir Asokan
0b73e9e7be client,appservice: deprecate SendMassagedStateEvent in favor of SendStateEvent params 2025-11-13 17:38:45 +02:00
Tulir Asokan
36d4e1f99c federation: don't close body when not reading it
Closes #431
2025-11-06 16:38:10 +01:00
Nick Mills-Barrett
8e23192a7d
client: support sending custom txn ID query param with state events
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
2025-10-31 10:01:49 +00:00
timedout
e61c7b3f1e
client: Add AdminWhoIs func (#411) 2025-10-18 20:30:43 +01:00
Tulir Asokan
c50460cd6e client: add response size limits
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
2025-10-18 13:54:14 +02:00
Toni Spets
22ea75db96 client,event: MSC4140: Delayed events
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
Includes transparent migration from deprecated MSC fields still used
in Synapse to later revision.
2025-10-14 14:22:47 +03:00
Tulir Asokan
13f251fe60 crypto/helper: don't block on decryption
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
2025-10-05 12:30:54 +03:00
Tulir Asokan
b0481d4b43 client: re-add support for unstable profile fields
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
2025-09-26 12:55:36 +03:00
Tulir Asokan
a8b5fa9156 client: fix some footguns in compileRequest
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
* add warning log if RequestBody is used without length instead of
  silently discarding the body
* fix wrapping RequestBody in nopcloser
* always set content length
2025-09-22 16:32:29 +03:00
Tulir Asokan
f9fb77d6aa client: add user directory search method 2025-09-22 13:46:46 +03:00
Tulir Asokan
b5bec2e96c client: stabilize support for state_after
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
2025-09-13 13:44:46 +03:00
Tulir Asokan
e295028ffd client: stabilize arbitrary profile field support
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
2025-09-09 19:10:07 +03:00
timedout (aka nexy7574)
0627c42270
client: implement MSC4323 (#407) 2025-09-01 16:01:05 +01:00
fmseals
1d6bea5fe3
client: fix v3/delete_devices method (#393)
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
2025-08-29 19:34:06 +03:00
Tulir Asokan
19f3b2179c pre-commit: ban log.Str(x.String()) 2025-08-29 11:07:16 +03:00
Tulir Asokan
d1004d42b0 client: add method to download media thumbnail 2025-08-18 00:24:57 +03:00
Tulir Asokan
6eced49860 client,event: remove deprecated MSC2716 structs 2025-08-17 13:32:07 +03:00
Tulir Asokan
cd022c9010 client: don't set user-agent header on wasm
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
2025-08-15 16:45:18 +03:00
Tulir Asokan
10b26b507d client: fix updating state store in CreateRoom 2025-08-01 10:38:02 +03:00
Tulir Asokan
3a28151780 client: log method/url when retrying requests 2025-07-29 17:41:51 +03:00
Tulir Asokan
65a64c8044 client: allow using custom http client for .well-known resolution
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
2025-07-20 14:23:20 +03:00
Tulir Asokan
0b62253d3b all: add support for creator power 2025-07-18 23:59:28 +03:00
Tulir Asokan
237ce1c64c client: remove redundant state store update in room create 2025-07-18 22:32:25 +03:00
Tulir Asokan
d804b5d961 client: add support for stable version of room summary endpoint 2025-06-04 14:48:22 +03:00
Tulir Asokan
1b1b83298c client,bridgev2: use time.After instead of sleep 2025-05-31 18:03:47 +03:00
Tulir Asokan
68565a1f18 client: add wrapper for /relations endpoints 2025-05-24 16:29:37 +03:00
Nick Mills-Barrett
4ffe1d23e9
client: don't attempt to make requests if the homeserver URL isn't set (#376)
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
Quick guard for where the client is created without using the
`NewClient` method.
2025-05-07 14:19:01 +01:00
Nick Mills-Barrett
19153e3638
client: return immediately if context canceled on external upload 2025-04-23 16:30:46 +01:00
Tulir Asokan
953334a0a0 client,federation: add wrappers for /publicRooms 2025-04-21 23:43:44 +03:00
Tulir Asokan
d3d20cbcf2 client: add context parameter for setting max retries 2025-04-21 23:43:23 +03:00
Tulir Asokan
f33b0506d0 client: add some nil safety
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
2025-03-12 19:48:05 +02:00
Tulir Asokan
52c8a2e1de sync: add support for MSC4222 2025-03-09 21:04:50 +02:00
Tulir Asokan
7f04ae7a9f client: remove unprefixed beeper streaming sync flag 2025-03-09 21:04:50 +02:00
nexy7574
d83b63aeaf
client: add wrapper for /knock endpoint (#359)
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
2025-03-09 19:16:31 +02:00
Tulir Asokan
e306c2817e client: fix update delayed event method
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
2025-03-06 01:29:06 +02:00
Tulir Asokan
01d1e9d69c client: fix msc4104 unstable prefix 2025-03-06 01:27:34 +02:00
Tulir Asokan
8c4920a6c4 client: add wrappers for sending MSC4140 delayed events 2025-03-06 00:58:53 +02:00
Tulir Asokan
1cc073cde6 client: add wrapper method for MSC2815
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
2025-02-23 18:13:09 +02:00
Tulir Asokan
642e17f2ae client: add request body for user redact
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
2025-01-29 21:52:05 +02:00
Tulir Asokan
f915ba2671 client: add wrapper for MSC4194 2025-01-29 21:48:36 +02:00
Tulir Asokan
7f20932607 client: add method to get full state event
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
2025-01-29 00:35:20 +02:00