Commit graph

101 commits

Author SHA1 Message Date
cf4484f123 Add user options to disable battery and certain connected messages
Some checks failed
Go / Lint ${{ matrix.go-version == '1.22' && '(latest)' || '(old)' }} (1.21) (push) Has been cancelled
Go / Lint ${{ matrix.go-version == '1.22' && '(latest)' || '(old)' }} (1.22) (push) Has been cancelled
2024-06-18 23:44:53 -04:00
Tulir Asokan
6d393bb9cc Bump version to v0.4.2 2024-06-16 23:58:05 +03:00
Tulir Asokan
c93884f6e6 Force-lowercase mobile source ID in google account pairing 2024-04-22 18:19:27 +02:00
Tulir Asokan
d70ddb415b Add lock for updating cookies 2024-04-17 00:18:22 +03:00
Tulir Asokan
d0a8b8406c Ignore conversation updates that arrive soon after marking as spam
Apparently there are race conditions in the gmessages app where it may
send a `SPAM_FOLDER` update and then `ACTIVE` immediately afterwards.
2024-04-16 15:48:00 +03:00
Tulir Asokan
584bc31896 Fix last data received ts if message ts is higher than current time 2024-04-11 16:34:57 +03:00
Tulir Asokan
86f06804b8 Add potential hacky workaround for multiple devices in gaia pairing 2024-04-11 15:48:27 +03:00
Tulir Asokan
bbfb5e7b5b Improve login failure analytics 2024-04-08 19:04:40 +03:00
Tulir Asokan
b131f50e51 Improve missed data resync logic 2024-04-08 12:47:00 +03:00
Tulir Asokan
e2c8d92382 Adjust hacky GET_UPDATES behavior 2024-04-05 17:05:20 +03:00
Tulir Asokan
7167eff883 Log warning if set active results in backfill 2024-04-05 16:41:11 +03:00
Tulir Asokan
0b6648eeed Resync if hacky GET_UPDATES works 2024-04-05 13:06:06 +03:00
Tulir Asokan
135bd5f5bb Don't try to set unconfigured tags 2024-04-05 12:54:57 +03:00
Tulir Asokan
074ad64773 Cancel previous async login when starting new one 2024-03-28 16:31:42 +02:00
Tulir Asokan
205e6a9751 Add missing nil check 2024-03-27 20:01:38 +02:00
Tulir Asokan
914e4ea280 Ignore read receipts pointing at old messages 2024-03-23 01:46:57 +02:00
Tulir Asokan
0456b8c3de Clear puppet phone numbers when phone ID changes 2024-03-18 15:14:29 +02:00
Tulir Asokan
c41dbebc0d Remove maulogger 2024-03-13 18:41:50 +02:00
Tulir Asokan
42d56b9e71 Add even more hacky workarounds for connecting after google login 2024-03-13 18:12:47 +02:00
Tulir Asokan
ea507552b0 Add analytics events for google login 2024-03-11 15:55:24 +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
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
c88187b99f Remove sus conversation data filtering 2024-03-01 13:51:36 +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
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
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
fa23bd14e8 Update mautrix-go 2024-02-23 21:20:26 +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
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
20d05c90d3 Add command for Google account login 2024-02-22 23:05:00 +02:00
Tulir Asokan
9c6ef9b665 Clear state flags when disconnecting 2024-01-16 14:21:13 +02:00
Tulir Asokan
13fdedd9fc Fix connected bridge state after switching to QR login 2023-12-14 01:36:43 +02:00
Tulir Asokan
5b1f6e4c7b Add hacks to send bad credentials on startup too 2023-12-14 01:35:21 +02:00
Tulir Asokan
62bf2e608b Send error notice if user switches to google account pairing 2023-12-14 01:18:17 +02:00
Tulir Asokan
cb5f3fa3f9 Only send unknown error state after 2 ping fails 2023-11-06 16:06:30 +02:00
John Newman
c7244e67da add generic analytics section for segment compatible api 2023-10-09 13:03:58 +01:00
Tulir Asokan
500f030fb3 Send phone not responding alerts to management room 2023-10-05 12:56:42 +03:00
Tulir Asokan
29320b06fa Don't drop missed events after reconnect 2023-09-07 17:29:48 +03:00
Tulir Asokan
0ddfd65b8b Undo bad credentials state on non-default sms app 2023-09-04 16:47:23 +03:00
Tulir Asokan
51c68f4919 Send bad credentials state if default sms app flag is false 2023-09-04 14:43:03 +03:00
Tulir Asokan
a4bb7e69cf Add separate error code for requested entity not found errors 2023-09-04 14:33:08 +03:00
Tulir Asokan
dc2d34127f Handle HTTP error responses properly 2023-09-04 14:28:22 +03:00
Tulir Asokan
1618051a12 Store phone settings for users 2023-08-30 20:45:51 +03:00
Tulir Asokan
2f8af9b6eb Include sim metadata with outgoing messages 2023-08-30 19:35:02 +03:00