Commit graph

390 commits

Author SHA1 Message Date
Tulir Asokan
e5b70c0b18 Fill httpTransport field 2024-03-05 19:31:12 +02:00
Tulir Asokan
90b5346763 Add timeouts for HTTP requests 2024-03-05 19:14:14 +02:00
Tulir Asokan
96c09b4752 Send acks before sending set active request 2024-03-05 13:11:27 +02:00
Tulir Asokan
94e59bbb3f Further improve hacky deduplication algorithm 2024-03-01 17:56:01 +02:00
Tulir Asokan
c03191856c Cancel async login if it's not waited 5 seconds after completion 2024-03-01 16:30:49 +02:00
Tulir Asokan
27d7edcb6d Re-set contact info if phone or contact ID changes 2024-03-01 14:44:29 +02:00
Tulir Asokan
765dc618e6 Add more logs for avatar syncing 2024-03-01 14:43:25 +02:00
Tulir Asokan
89b9f46301 Don't clear puppets when phone ID changes
Otherwise the avatars will remain on the server and won't be properly reset
when new contact info comes in for the same user.
2024-03-01 14:42:40 +02:00
Tulir Asokan
072c002198 Improve hacky deduplication algorithm 2024-03-01 13:53:46 +02:00
Tulir Asokan
c88187b99f Remove sus conversation data filtering 2024-03-01 13:51:36 +02:00
Tulir Asokan
69764df5f8 Use bot for kicking if necessary 2024-03-01 13:34:27 +02:00
Tulir Asokan
04828bef39 Try another algorithm for DM participant deduplication 2024-03-01 13:26:45 +02:00
Tulir Asokan
e9ec6b5e64 Don't include chat info in every log line when syncing 2024-02-29 17:36:03 +02:00
Tulir Asokan
2b41398074 Fix power levels when main intent changes 2024-02-29 17:33:15 +02:00
Tulir Asokan
d35936e857 Actually apply hacky deduplication for DM participants 2024-02-29 17:25:51 +02:00
Tulir Asokan
173644423c Add hacky deduplication for DM participants 2024-02-29 17:19:48 +02:00
Tulir Asokan
c409f75797 Don't set blank gmsg-contact URI in ghost identifiers 2024-02-29 15:50:19 +02:00
Tulir Asokan
4998d4a34b Bridge custom emoji reactions as :custom:
Official web app doesn't support them yet either, this is probably
better than the raw UUID
2024-02-29 15:49:36 +02:00
Tulir Asokan
6d7bfc1ba8 Refactor pinger 2024-02-29 14:20:58 +02:00
Tulir Asokan
69aacf25b5 Bump config message version number 2024-02-29 13:42:22 +02:00
Tulir Asokan
ca0e0a09a1 Add warning log when messages are dropped 2024-02-29 13:38:57 +02:00
Tulir Asokan
8b4f19fd2f Ack failed messages too 2024-02-26 17:08:24 +02:00
Tulir Asokan
0f4f00295c Add hacky sleep before sending set active session request 2024-02-26 16:54:06 +02:00
Tulir Asokan
eccbb9910e Check cookies are present before trying to log in 2024-02-26 16:54:06 +02:00
Tulir Asokan
b3457907fa Add missing return 2024-02-26 16:54:05 +02:00
Tulir Asokan
59b3b7d0ec Add context for google login and cancel if HTTP request is cancelled 2024-02-26 16:10:32 +02:00
Tulir Asokan
7db7fdf20b Properly reset login in progress flag after google login 2024-02-26 15:34:12 +02:00
Tulir Asokan
8eed8382cb Add proper error codes in google login provisioning API 2024-02-26 15:30:57 +02:00
Tulir Asokan
207f152c04 Add another debug log 2024-02-25 00:18:17 +02:00
Tulir Asokan
aa7c66496f Use dbutil.QueryHelper for database stuff 2024-02-25 00:18:06 +02:00
Tulir Asokan
6c4d8d8744 Properly set phone ID when pairing with google account 2024-02-23 22:52:04 +02:00
Tulir Asokan
2ca85cf2bd Add log after SetActiveSession call and fix LoginGoogle error message 2024-02-23 22:44:06 +02:00
Tulir Asokan
fec15f4bc8 Fix /google_login/wait provisioning API and add some logs 2024-02-23 22:07:50 +02:00
Tulir Asokan
c806258b82 Redact cookies when logging in 2024-02-23 22:00:39 +02:00
Tulir Asokan
fa23bd14e8 Update mautrix-go 2024-02-23 21:20:26 +02:00
Tulir Asokan
c6570863f6 Update Docker image to Alpine 3.19 2024-02-23 21:20:23 +02:00
Tulir Asokan
9893a0c639 Update pre-commit hooks and Go version used for linting 2024-02-23 21:20:20 +02:00
Tulir Asokan
00488409ed Merge branch 'tulir/google-account-pairing' 2024-02-23 21:20:16 +02:00
Tulir Asokan
c360b69ca6 Update pairing type disconnection error messages 2024-02-23 20:45:24 +02:00
Tulir Asokan
b134453801 Handle logout events in a hacky way 2024-02-23 20:25:31 +02:00
Tulir Asokan
f99201f8e6 Fix some things 2024-02-23 19:26:49 +02:00
Tulir Asokan
49a3fd983f Add support for unpairing google logins 2024-02-23 16:32:12 +02:00
Tulir Asokan
ca15922d7c Add provisioning API for google login 2024-02-23 16:11:10 +02:00
Tulir Asokan
a59074a026 Add hack to ignore weird pre-response data 2024-02-23 15:35:59 +02:00
Tulir Asokan
1df5dfe99a Add network field to auth data 2024-02-23 14:53:19 +02:00
Tulir Asokan
e3f965eff6 Save incoming cookie changes 2024-02-22 23:19:00 +02:00
Tulir Asokan
20d05c90d3 Add command for Google account login 2024-02-22 23:05:00 +02:00
Tulir Asokan
02f0b9e2ca Add Google account pairing support to libgm 2024-02-22 22:39:28 +02:00
Tulir Asokan
7d84b7100d Bump version to v0.2.4 2024-01-16 16:18:59 +02:00
Tulir Asokan
850727c676 Update changelog 2024-01-16 14:21:13 +02:00