Tulir Asokan
8341492c9f
dependencies: update mautrix-go
2025-08-26 18:07:45 +03:00
Conan
3ae88caa80
connector: handle supergroup upgrades ( #118 )
...
Co-authored-by: Tulir Asokan <tulir@maunium.net >
2025-08-07 03:09:24 +08:00
Tulir Asokan
f5bfe421d1
handletelegram: stop returning unnecessary errors
2025-07-31 14:12:14 +03:00
Tulir Asokan
a31787f894
client: include event handling error in returns
2025-07-31 14:02:15 +03:00
Tulir Asokan
03fe8bf782
from-matrix: don't expect mute timestamp to be max int32
2025-07-23 13:43:06 +03:00
Adam Van Ymeren
a501042f1d
updates: don't error on edit if not tg.Message, just warn
2025-07-14 11:34:49 -07:00
Toni Spets
cb98833590
directmedia: handle custom emojis
2025-07-10 09:15:58 +03:00
Adam Van Ymeren
4c9555eded
HandleMute: property set silent and MuteUntil
2025-07-07 14:44:59 -07:00
Adam Van Ymeren
ac3ce3c097
don't error on unsupported peer type in settings handler
2025-06-27 21:53:42 -07:00
Adam Van Ymeren
6280a7bae7
updates: don't error just warn on unknown messages/actions
2025-06-27 20:34:30 -07:00
Adam Van Ymeren
af630ecbd1
updates: don't die when deleting a message we don't have in db, just log and ignore
2025-06-27 20:20:53 -07:00
Adam Van Ymeren
7a04f298d2
move gotd fork into repo. ( #111 )
...
- update to latest telegram layer
- remove some references to fields in tg.Entities that don't exist in
the schema
- originally added here:
https://github.com/beeper/td/commit/820929062a2ba0104397bc01235ab58a9cff780e
- referenced here
-
https://github.com/mautrix/telegramgo/commit/124f0967ed195b5a380c9bd02e170ada9710dde3
-
https://github.com/mautrix/telegramgo/commit/4205047aab2e0639217148b5d125bfaab668bd8e
2025-06-27 20:03:37 -07:00
Adam Van Ymeren
0952df0244
all: respect/propagate errors from QueueRemoteEvent ( #110 )
2025-06-26 13:43:35 -07:00
Toni Spets
3c3c3f1dec
client: Prefer contact name if exists
...
Don't allow TG user to override your own contact name for them after
they have been made a contact.
2025-05-30 13:22:57 +03:00
Tulir Asokan
05b1eb1214
handletelegram: provide stream order in read receipts ( #102 )
2025-05-27 11:45:39 +03:00
Toni Spets
9e719429e7
Fix handle channel photo edits as well as group chats
2025-05-21 08:15:23 +03:00
Toni Spets
7e75c8ef83
media: make all media direct downloadable
...
The only exception is emojis.
Also changed direct download encoding field names to be more generic
when used in mixed manner depending on peer type.
Direct downloads are still somewhat inefficient as they require an API
round trip to succeed but we can cache things in the database if needed.
2025-05-07 06:43:51 +03:00
Adam Van Ymeren
eb5ae65402
reactions: fix db race when handling reactions on newly received old messages ( #100 )
2025-04-25 13:19:50 -07:00
Nick Mills-Barrett
10b8c4b635
chatinfo: log when chats have no or unknown photo types
2025-04-07 13:58:53 +01:00
Tulir Asokan
28d8276554
dependencies: update mautrix-go
2025-03-25 17:00:55 +02:00
Sumner Evans
1bc3a2538e
treewide: add copyright/license notices
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2025-03-05 10:16:50 -07:00
Sumner Evans
dcc8689835
emojis: properly handle inline emojis on local
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2025-03-04 11:27:09 -07:00
Sumner Evans
36bb741c68
client: refetch message during conversion if file reference expired
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2025-02-24 11:45:21 -07:00
Sumner Evans
c82b273155
connector/reactions: return error if not logged in
...
Previously, the getAvailableReactions function was only called with a
logged in client. However, now that it is called in the GetCapabilities
call, the client is no longer guaranteed to be logged in.
This was causing an NPE due to the (*TelegramClient).client being nil.
This commit makes the getAvailableReactions function not panic when the
client is not logged in.
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2025-01-13 21:28:26 -07:00
Tulir Asokan
386cfa4cfb
capabilities: update to new format
2025-01-10 21:17:10 +02:00
Sumner Evans
c3fc77c2a8
connector: always use channel sender in broadcast rooms and add per-message profile
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2025-01-09 12:52:43 -07:00
Sumner Evans
987395914e
connector: add stream order to new messages
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-12-09 09:43:30 -07:00
Sumner Evans
2129dd803d
connector/edits: handle edge cases where there are multiple parts to existing messages
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-12-03 11:44:41 -07:00
Sumner Evans
74d9edf42e
connector/edits: add better logging when parts change
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-12-03 11:14:12 -07:00
Sumner Evans
a1f58cad11
connector/client: ignore messages in more situations
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-12-03 09:01:41 -07:00
Sumner Evans
bf3e0ec8ab
connector: simplify some of the dispatcher handlers
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-12-02 15:53:43 -07:00
Sumner Evans
124f0967ed
connector: leave chats more aggressively on entity updates
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-12-02 15:39:14 -07:00
Sumner Evans
d6765157ab
connector: don't use Part IDs
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-12-02 09:54:12 -07:00
Sumner Evans
07a8553b22
connector: fix chat info for Saved Messages chat
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-31 14:23:18 -06:00
Sumner Evans
b33209fafa
connector: remove debug line
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-29 09:47:54 -06:00
Sumner Evans
cc8dce3959
deps/mautrix: upgrade for more ergonomic event meta handling
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-28 14:01:22 -06:00
Sumner Evans
22488fbc5f
connector: add notice on chat creation
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-28 13:16:55 -06:00
Sumner Evans
3498ed8dc1
calls: fix notifications
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-28 13:06:37 -06:00
Sumner Evans
7cb70d9753
connector: only save access hash if not a min entity
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-26 22:48:54 -06:00
Sumner Evans
e266d1ac80
reactions: poll for reactions on read receipt
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-24 12:57:43 -06:00
Sumner Evans
0f933f691b
typing: support typing as a channel user
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-24 11:15:48 -06:00
Sumner Evans
4bdd415dbe
connector: send notice about TTL changes
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-23 10:12:23 -06:00
Sumner Evans
a573740b9a
media/transfer: add function to directly download bytes
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-22 09:21:56 -06:00
Sumner Evans
f91b429c47
connector: notify when call starts/ends
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-15 08:26:05 -06:00
Sumner Evans
b0e6dcb1d6
client: support TG -> Matrix disappearing messages
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-14 14:33:17 -06:00
Sumner Evans
132585de34
user info: handle deleted users
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-14 14:09:08 -06:00
Sumner Evans
73d0b189bb
scoped store: implement new AccessHasher interface
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-11 08:52:26 -06:00
Sumner Evans
4205047aab
chat delete: bridge properly
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-09 11:24:55 -06:00
Sumner Evans
03c7028460
power levels: prevent sending to blocked users
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-09 09:57:02 -06:00
Sumner Evans
6c44ba487a
backfill: set CanBackfill in the correct places
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com >
2024-10-07 09:16:24 -06:00