Commit graph

192 commits

Author SHA1 Message Date
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
Tulir Asokan
0b73e9e7be client,appservice: deprecate SendMassagedStateEvent in favor of SendStateEvent params 2025-11-13 17:38:45 +02:00
Tulir Asokan
eb2fb84009 appservice/intent: don't EnsureJoined when sending massaged own join event 2025-11-13 17:32:14 +02:00
Tulir Asokan
8e668586f9 appservice/intent: add room ID to fake join response
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-02 22:10:22 +03:00
Tulir Asokan
cf29b07f32 appservice/websocket: use io.ReadAll instead of json decoder
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-09-24 20:29:49 +03:00
Tulir Asokan
30ab68f7f1 appservice: maybe fix url template raw path for unix sockets
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-09-04 18:18:53 +03:00
Tulir Asokan
bcd0a70bdf appservice/websocket: override read limit
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-02 00:31:15 +03:00
Tulir Asokan
19f3b2179c pre-commit: ban log.Str(x.String()) 2025-08-29 11:07:16 +03:00
Tulir Asokan
bcf92ba0e8 appservice/intent: don't download avatar before setting on hungry
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-07-29 17:42:04 +03:00
Tulir Asokan
ae2c07fb86 appservice/websocket: close writer after sending 2025-07-28 17:34:28 +03:00
Tulir Asokan
83b4b71a16 appservice/websocket: switch from gorilla to coder 2025-07-28 14:56:09 +03:00
Tulir Asokan
d5223cdc8f all: replace gorilla/mux with standard library 2025-07-28 14:56:09 +03:00
Tulir Asokan
0b62253d3b all: add support for creator power 2025-07-18 23:59:28 +03:00
Tulir Asokan
9a170d2669 bridgev2,appservice: add via to EnsureJoined and use it for tombstone handling
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-18 17:55:27 +03:00
Tulir Asokan
71b994b3fd appservice: remove unnecessary parameter in ping
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-07-01 23:29:43 +03:00
Tulir Asokan
6f370cc3bb bridgev2,appservice: move appservice ping loop to appservice package 2025-07-01 23:28:59 +03:00
Tulir Asokan
72bacbb666 appservice/intent: ensure registered when sending own member 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-06-09 19:30:37 +03:00
Tulir Asokan
53d027c06f appservice: replace custom response utilities with RespError and exhttp 2025-05-28 21:34:46 +03:00
Tulir Asokan
c0d1df18b4 appservice/http: use constant time comparisons for access tokens
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-16 15:05:55 +02:00
Brad Murray
ac1ff66e3b
bridgev2/messagestatus: prevent checkpoints for double puppeted events (#342)
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
Co-authored-by: Tulir Asokan <tulir@maunium.net>
2025-01-10 15:19:44 +02:00
onestacked
3cb79ba7b5 client,bridgev2: add support for MSC4190
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
Closes #288
2024-12-07 23:34:04 +02:00
Tulir Asokan
0f3c599888 appservice/registration: update stable ephemeral event field
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-10-28 14:24:00 +02:00
Tulir Asokan
cc179f8ff7 appservice: remove TLS 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
2024-09-30 11:11:26 +03:00
Tulir Asokan
b5602fd4fe appservice: increase OTK count channel size
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-09-15 01:20:50 +03:00
Tulir Asokan
238cacf2d5 client,crypto,appservice: add MSC3202 features 2024-08-30 17:27:12 +03:00
Tulir Asokan
962ac6bf17 appservice: ensure registered before uploading media 2024-08-08 12:45:24 +03:00
Tulir Asokan
3b9f7c8f23 appservice/wshttp: fill RequestURI and RemoteAddr fields 2024-07-28 01:22:28 +03:00
Sumner Evans
65ae2fce42
appservice/intent: fix error handling on double-puppet invites (#252)
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-07-06 10:11:55 +03:00
Tulir Asokan
dbefc6e49c appservice/intent: set will_auto_accept for double puppets in EnsureJoined 2024-06-26 23:41:35 +03:00
Tulir Asokan
3b55fedc17 client: cache spec versions supported by server 2024-06-15 20:16:19 +03:00
Tulir Asokan
f9e2159842 Ignore incoming double puppeted events 2024-06-11 17:19:05 +03:00
Tulir Asokan
f9dccaaea0
Merge pull request #213 from mautrix/bridgev2
Bridge architecture v2
2024-06-10 22:25:49 +03:00
Sumner Evans
57f6cd89e3
(*Client).Download: return entire response instead of just body
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-05-29 09:55:17 -06:00
Tulir Asokan
9254a5d6c1 Add base for v2 bridge architecture 2024-05-27 13:53:18 +03:00
Tulir Asokan
94246ffc85 Drop maulogger support 2024-03-11 20:36:06 +02:00
Tulir Asokan
1423650a29 Don't use UIA wrapper for appservice user registrations 2024-03-10 20:34:52 +02:00
Tulir Asokan
1045d29e07 Add some more godocs for appservices 2024-01-19 12:46:44 +02:00
Tulir Asokan
591e3a002a Add function for creating a ready-to-use AppService instance 2024-01-19 12:29:25 +02:00
Tulir Asokan
c8e9998e7f Drop support for legacy query param auth for appservices 2024-01-16 21:28:13 +02:00
Tulir Asokan
d151ec4711 Drop support for unprefixed appservice paths 2024-01-16 21:28:13 +02:00
Tulir Asokan
308e3583b0 Add contexts to event handlers 2024-01-13 18:56:12 +02:00
Tulir Asokan
25bc36bc7a Add more contexts everywhere 2024-01-07 22:45:02 +02:00
Tulir Asokan
48bfc596f0 Fix incorrect context.Backgrounds 2024-01-07 15:35:58 +02:00
Tulir Asokan
c5f5135c96 Try downloading avatar before setting it for bot 2024-01-07 15:35:10 +02:00
Joakim Recht
753cdb2e1c
Add context parameter to all client and bridge API functions (#144) 2023-12-15 16:23:31 +02:00
Tulir Asokan
b2a54de015 Add warning logs if AS event handling takes long 2023-09-11 10:52:45 -04:00
Tulir Asokan
cacf5a943b Add mutex around EnsureRegistered 2023-08-21 12:01:53 +03:00
Tulir Asokan
d77e911999 Allow overriding websocket transaction handler 2023-08-11 16:12:40 +03:00
Tulir Asokan
35b6ea3261 Move random, mimetype and dualerror to util package 2023-08-05 18:43:54 +03:00
Tulir Asokan
8c3bd77229 Add support for proxying HTTP requests over AS websocket 2023-07-19 16:53:21 +03:00