Commit graph

59 commits

Author SHA1 Message Date
Sumner Evans
d686912c74
provisioning: only update timezone after login success 2022-05-12 08:56:00 -06:00
Sumner Evans
08e77fab29
media backfill: send retry requests at the configured time
Only does the batch send of requests if the request method is 'local_time'
2022-05-11 17:10:55 -06:00
Tulir Asokan
6f5fee5d37 Include main device platform in ping and login APIs 2022-05-04 19:47:36 +03:00
Tulir Asokan
2e15edb209 Add endpoints for checking if number is on WhatsApp 2022-04-21 13:30:40 +03:00
Sumner Evans
c664e5f107
Updates from CR
Co-authored-by: Tulir Asokan <tulir@maunium.net>
2022-04-06 08:56:58 -06:00
Sumner Evans
8a49fea812
backfill: backfill conversation when started
This applies to when the conversation is started via the provisioning
API (start new chat) or when a new message comes in to that portal.
2022-03-29 23:40:22 -06:00
Sumner Evans
12a23e2ca5
historysync: refactor to utilize backfill queue
Also sends the `m.room.marker` event when a backfill stage is complete.
2022-03-29 19:26:11 -06:00
Tulir Asokan
7322f78d56 Delete connection and update JID map on remote logout 2022-03-10 22:21:24 +02:00
Sumner Evans
a68bce35fc
segment: add tracking to provisioning API
Co-authored-by: Tulir Asokan <tulir@maunium.net>
2022-03-10 11:55:04 -07:00
Tulir Asokan
1eb210c249 Add support for bridging reactions 2022-03-05 21:22:31 +02:00
Tulir Asokan
082bdcca11 Move provisioning endpoint version into code 2022-03-01 20:43:05 +02:00
Tulir Asokan
8e5442300c Add endpoints to list groups and open group portals 2022-03-01 20:25:46 +02:00
Tulir Asokan
3c274e6d35 Add proper error message for outdated client errors 2022-02-17 15:33:31 +02:00
Tulir Asokan
66d0817081 Add provisioning API endpoints to list contacts and start chats 2022-02-17 15:14:53 +02:00
Tulir Asokan
d31910ab05 Add provisioning API to sync appstate 2022-01-10 12:31:13 +02:00
Tulir Asokan
b8a8dcffaf Fix handling login events 2021-12-09 15:57:26 +02:00
Tulir Asokan
9a3bb28801 Fix mistake in login code 2021-12-09 15:54:01 +02:00
Tulir Asokan
c7aa4ff338 Update whatsmeow 2021-12-09 12:27:31 +02:00
Tulir Asokan
231691ebbd Update whatsmeow to maybe fix retry receipts 2021-11-30 15:14:56 +02:00
Tulir Asokan
0d6af45dcf Fix small mistakes 2021-11-15 14:42:06 +02:00
Tulir Asokan
a89d0f43fb Update whatsmeow 2021-11-15 13:39:39 +02:00
Tulir Asokan
c0e69e31bb Include phone and device number in /ping API response 2021-11-04 12:06:56 +02:00
Tulir Asokan
38dd02e788 Fix provisioning API including jid field at the wrong time 2021-11-01 18:45:58 +02:00
Tulir Asokan
745dd1cd63 Fix incorrect bridge state after logging out 2021-10-29 22:03:00 +03:00
Tulir Asokan
b9d918a1d1 Don't close login websocket on multidevice disabled error 2021-10-29 21:41:03 +03:00
Tulir Asokan
4695ce450f Show error message if user scans QR code with multidevice disabled 2021-10-28 21:22:34 +03:00
Tulir Asokan
b1baa0a0a1 Rename relay permission level 2021-10-28 14:03:55 +03:00
Tulir Asokan
ded2fb9799 Implement logout and provisioning API login 2021-10-27 15:54:34 +03:00
Tulir Asokan
56850bb698 Initial switch to go.mau.fi/whatsmeow 2021-10-22 20:14:34 +03:00
Tulir Asokan
74870ec638 Add proper error message for multi-device 2021-09-23 14:09:03 -04:00
Tulir Asokan
abbff16e66 Switch bridge state system to using state events 2021-08-04 16:14:47 +03:00
Tulir Asokan
74e21b8e1d Make bridge state monitoring more generic 2021-06-01 15:19:47 +03:00
Tulir Asokan
b9b4c11d81 Update dependencies 2021-05-12 14:54:40 +03:00
Tulir Asokan
024d9a0b0e Update go-whatsapp 2021-03-19 20:52:15 +02:00
Tulir Asokan
cbdd10e704 Send real-time whatsapp connection state to asmux 2021-03-15 18:06:16 +02:00
Tulir Asokan
69e5a26e01 Improve handling of errors noticed in provisioning API pings 2021-02-24 00:06:11 +02:00
Tulir Asokan
7bd47fabb2 Update go-whatsapp to break everything and maybe improve things 2021-02-18 23:36:14 +02:00
Tulir Asokan
69dd7f803a Move whatsapp-ext to go-whatsapp 2021-02-17 01:21:30 +02:00
Tulir Asokan
ba0ec021ba Update go-whatsapp 2021-02-10 21:20:31 +02:00
Tulir Asokan
4304472fc9 Add more logging in provisioning API 2021-02-09 17:03:34 +02:00
Tulir Asokan
fec43431f7 Cancel login if websocket is closed 2021-02-07 22:14:13 +02:00
Tulir Asokan
eb2c66c753 Fix wrong log type 2021-02-07 21:48:42 +02:00
Tulir Asokan
449943bef8 Log ping status when calling provisioning API 2021-02-07 17:35:06 +02:00
Tulir Asokan
1a6fdf565e Fix error checks in provisioning API login 2021-02-07 16:54:09 +02:00
Tulir Asokan
79229ef19f Remove unused import 2021-02-05 19:36:55 +02:00
Tulir Asokan
3c7ff4bc0c Miscellaneous improvements to connection management 2021-02-05 19:26:09 +02:00
Tulir Asokan
25cca87959 Stringify error message in ping endpoint 2021-01-28 22:46:57 +02:00
Tulir Asokan
48d7ec6919 Allow browsers to authenticate in login websocket 2020-11-24 16:48:29 +02:00
Tulir Asokan
b4d7617967 Make force logout the default 2020-11-19 20:08:27 +02:00
Tulir Asokan
b24672d6b4 Add force param to logout provisioning API 2020-11-19 19:18:59 +02:00