Sumner Evans
15b0dc51b3
snc: implement resolving Telegram IDs, usernames, and phone numbers
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-08-22 12:18:21 -06:00
Tulir Asokan
9d8f162f41
chatinfo: override name for saved messages
2024-08-22 18:26:08 +03:00
Tulir Asokan
b25c09fc53
store: refactor access hash and session tables
...
* Move sessions to user_login metadata, as that data rarely changes after login.
* Merge user and channel access hashes. Those IDs don't conflict.
* Split usernames into a new table to allow better `ON CONFLICT` updates
(when a username moves to another entity, we want the old row to be replaced).
Usernames also don't need to be scoped to a login.
2024-08-22 17:54:10 +03:00
Tulir Asokan
e611c87342
all: add some todos and fix small issues
2024-08-22 17:53:50 +03:00
Sumner Evans
8b8b689187
sync: add on-command sync
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-08-22 07:57:28 -06:00
Sumner Evans
0670c2b2bc
updates: add wrapper for API calls to update users
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-08-22 07:57:28 -06:00
Sumner Evans
56f83315ed
backfill: implement
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-08-22 07:57:28 -06:00
Sumner Evans
6c4c0f4821
connector/chatinfo: use access hash for user
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-08-20 08:54:34 -06:00
Sumner Evans
a86c2c2544
read receipts: bridges TG <-> Matrix
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-08-08 15:51:27 -06:00
Sumner Evans
838f291220
store: move the access_hash and username to separate per-user table
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-08-08 12:12:17 -06:00
Sumner Evans
fe550da243
metadata: allow disabling channel memebr sync
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-07-18 08:50:35 -06:00
Sumner Evans
a0d88da480
metadata: add pagination config for members initial sync
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-07-17 16:44:53 -06:00