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
Tulir Asokan
35b8474459
Fix condition
2023-07-05 16:09:48 +03:00
Tulir Asokan
d075cff11f
Add warning log if websocket closing is stuck
2023-07-05 15:54:59 +03:00
Tulir Asokan
c710d4aa8f
Deprecate MSC2716 methods and add Beeper batch send methods
2023-06-19 01:24:44 +03:00
Tulir Asokan
6e56590fff
Fix setting flag when using default homeserver URL for double puppeting
2023-04-10 13:06:36 +03:00
Tulir Asokan
5633822418
Don't set appservice user ID in double puppet clients
2023-03-23 14:52:46 +02:00
Boris Rybalkin
8dc342d859
unix socket fix and test
2023-03-18 15:58:31 +00:00
Tulir Asokan
5a68173fe3
Add support for unix sockets in appservice module
...
Closes #116
Co-authored-by: Boris Rybalkin <ribalkin@gmail.com>
2023-03-15 16:18:52 +02:00
Tulir Asokan
23e869f21b
Remove unnecessary Load and Init methods for appservices
2023-03-15 15:36:54 +02:00
Tulir Asokan
af8678465f
Move AS HTTP route adding to Init
...
Otherwise there may be race conditions as Start is called in a goroutine
2023-03-14 20:24:36 +02:00
Tulir Asokan
ff65890b79
Add id parameter to appservice ping
2023-03-11 16:47:18 +02:00
Tulir Asokan
c036250731
Implement MSC2659
2023-03-11 16:29:35 +02:00
Tulir Asokan
f6b793624a
Adjust some transaction logs
2023-03-07 19:31:39 +02:00
Tulir Asokan
c64706dac2
Log when sending response to websocket transaction
2023-03-06 16:32:13 +02:00
Tulir Asokan
87bfbbea2e
Don't import appservice module from crypto
2023-02-24 15:16:42 +02:00
Tulir Asokan
9e2b8c35f2
Rename client logger to Log and add legacy Logger for backwards compatibility
2023-02-21 12:18:14 +02:00
Tulir Asokan
b238f0546a
Switch appservice module to zerolog
2023-02-21 01:07:24 +02:00
Tulir Asokan
16b1a3a198
Switch client module to zerolog
2023-02-20 00:18:21 +02:00
Tulir Asokan
3e303ac01b
Move most of appservice state store to client layer
2023-02-19 03:22:14 +02:00
Tulir Asokan
a97aabf4bb
Remove deprecated SendVideo and SendImage methods
2023-02-19 03:22:14 +02:00
Tulir Asokan
c8d92909a0
Replace AppServiceUserID field with SetAppServiceUserID boolean
2023-02-19 03:22:14 +02:00
Tulir Asokan
b1c2b2552c
Remove unused Typing map in SQLStateStore
2023-02-19 03:22:14 +02:00
Tulir Asokan
79d25715e4
Implement crypto.StateStore in appservice.SQLStateStore
2023-02-19 03:22:14 +02:00
Tulir Asokan
056e97d930
Remove remaining uses of ioutil
2023-02-04 15:36:42 +02:00
Tulir Asokan
a76b21a9ca
Merge pull request #107 from raf924/fix/dendrite/invite
...
Ignore invite error message from dendrite when user is already in the room
2023-01-20 16:27:36 +02:00
Tulir Asokan
25880b7367
Remove appservice typing state store
...
It was never really necessary, and turned out to be actively harmful as
bridges should be able to renew typing status before the previous one
ends to bridge typing without gaps.
2023-01-02 13:35:03 +02:00
Rafaël Naciri
701062f9c8
Ignore invite error message from dendrite when user is already in the room
2022-12-30 20:14:43 +01:00
Tulir Asokan
d39599f8fb
Use errors.Is instead of string comparison
2022-12-12 14:10:56 +02:00