Commit Graph

83 Commits

Author SHA1 Message Date
Tulir Asokan
8ebad277f5 Make backfilling code compatible with threads
This doesn't trigger thread backfill yet, but the backfill methods can
handle threads now.
2023-06-18 20:09:23 +03:00
Tulir Asokan
248664f8b0 Set guild bridging mode when using bridge command without entire flag 2023-06-17 19:37:21 +03:00
Tulir Asokan
cf640ac83d Ignore incoming typing notifications from logged-in users 2023-06-14 10:56:24 +03:00
Tulir Asokan
a265d03319 Add support for bulk message delete from Discord 2023-06-02 16:13:22 +03:00
Tulir Asokan
bd56d33c89 Convert Portal to zerolog 2023-04-30 18:50:30 +03:00
Tulir Asokan
a44ceea836 Fix some unused parameters 2023-04-28 16:06:20 +03:00
Tulir Asokan
f6c4f49bb0 Ensure user invited when updating portal info. Probably fixes #62 2023-04-28 14:58:24 +03:00
Tulir Asokan
568e270540 Receive all events in same function 2023-04-26 22:04:29 +03:00
Tulir Asokan
3e1d1740f7 Sync group DM participants on change 2023-04-26 21:19:06 +03:00
Tulir Asokan
f247c679de Add user ID to discordgo logs 2023-04-25 20:48:06 +03:00
Tulir Asokan
7b93d9099d Enable discordgo info logs by default 2023-04-25 20:33:47 +03:00
Tulir Asokan
3f3c86754d Bridge friend nicks as DM room name 2023-04-22 02:50:14 +03:00
Tulir Asokan
e3ff8d2269 Sort private channel list before syncing 2023-04-20 14:27:37 +03:00
Tulir Asokan
533054b8a0 Add option to disable backfilling in big guilds 2023-04-16 23:13:15 +03:00
Tulir Asokan
4194b4dfd9 Improve missed message backfilling 2023-04-16 15:06:02 +03:00
Max Sandholm
693fe49a9a Check last message ID before attempting backfill 2023-04-14 23:09:59 +03:00
Max Sandholm
ee5ea87e83 Forward fill missing messages on startup 2023-04-14 18:48:35 +03:00
Tulir Asokan
46115fafd5 Switch user and puppet files to zerolog 2023-03-12 14:25:24 +02:00
Tulir Asokan
0deec8b853 Retry on unknown errors when logging in 2023-03-10 17:39:34 +02:00
Tulir Asokan
d42c4722c9 Fill usersByID properly 2023-03-08 19:49:43 +02:00
Tulir Asokan
ee2ad7527e Add some logs when disconnecting 2023-03-08 19:21:58 +02:00
Tulir Asokan
bccdc67eb2 Adjust guild info logs 2023-02-28 21:43:55 +02:00
Tulir Asokan
ccd29752c7 Fetch missing channel info on message to support DMs for bots 2023-02-27 11:42:53 +02:00
Tulir Asokan
71d1689776 Adjust some calls for bot accounts 2023-02-27 01:19:26 +02:00
Tulir Asokan
ce4d05bb11 Don't save discord token before login is successful 2023-02-27 01:19:26 +02:00
Tulir Asokan
60c260a471 Add initial support for bot accounts. Fixes #12 2023-02-27 01:02:58 +02:00
Tulir Asokan
77b230f4d8 Update mautrix-go and switch to zerolog 2023-02-26 21:57:18 +02:00
Nick Mills-Barrett
ac7ad471a5 Ensure room is muted before sending events to it 2023-02-24 18:31:18 +00:00
Tulir Asokan
4676ec98c4 Add more options for guild message handling 2023-02-18 22:56:20 +02:00
Tulir Asokan
fac7d79c5e Subscribe to guild when bridging it 2023-02-04 14:49:10 +02:00
Tulir Asokan
1e81fc6a02 Improve typing notification handling 2023-02-04 14:17:59 +02:00
Tulir Asokan
80f8bed9b9 Subscribe to bridged guilds on connect 2023-02-04 14:17:56 +02:00
Tulir Asokan
7cdd1bb9e4 Double check bridging status before handling message
Some webhook messages don't seem to have the guild ID specified
2023-02-04 13:45:50 +02:00
Tulir Asokan
98f45991a4 Add support for running Discord bot commands. Fixes #35 2023-01-29 13:45:00 +02:00
Tulir Asokan
e9249d6ff9 Upload files before sending message 2023-01-28 15:43:16 +02:00
Tulir Asokan
1b4b351f2a Set AutoBridgeChannels flag after creating portals. Fixes #47 2023-01-28 14:03:02 +02:00
Tulir Asokan
97b388fd24 Add some logs for guild and channel create/update/delete events 2023-01-27 21:13:06 +02:00
Tulir Asokan
7d959c92dc Automatically unbridge guild when leaving if it has no other Matrix users 2023-01-27 21:06:30 +02:00
Tulir Asokan
587cf8a17e Retry connecting a few times if connection fails on startup 2023-01-24 21:00:17 +02:00
Tulir Asokan
e2bd89bd97 Add hacky option to mute all guild channels on create 2023-01-20 15:07:18 +02:00
Tulir Asokan
9e7c54bdc0 Maybe actually fix bridge state order 2023-01-16 18:36:23 +02:00
Tulir Asokan
70dd119faa Prevent transient disconnect state after bad credentials 2023-01-13 19:25:38 +02:00
Tulir Asokan
57ef7ec63f Actually make logout detection work 2023-01-13 19:00:15 +02:00
Tulir Asokan
330faa45fa Handle getting logged out while bridge is running 2023-01-13 18:41:23 +02:00
Tulir Asokan
098c8c52da Fix condition for sending CONNECTED state after TRANSIENT_DISCONNECT 2023-01-13 18:06:55 +02:00
Tulir Asokan
9d84faa954 Add support for unbridging guilds 2023-01-13 17:01:23 +02:00
Tulir Asokan
de59f449f1 Move automatic double puppeting to correct place 2023-01-11 18:50:50 +02:00
Tulir Asokan
ad9ead6e81 Check permission overwrites before bridging channels 2023-01-11 18:28:02 +02:00
Tulir Asokan
287a3aa6d0 Clear ReadStateVersion on logout 2022-11-30 15:11:04 +02:00
Tulir Asokan
89985740fd Don't return errors from Logout 2022-11-26 15:18:42 +02:00