Commit Graph

60 Commits

Author SHA1 Message Date
Tulir Asokan
a32c469ca4 Fix inserting non-thread reactions. Fixes #40 2022-10-31 12:47:10 +02:00
Tulir Asokan
b64617a699 Update mautrix-go and stop sending all thread messages as replies 2022-10-28 23:45:35 +03:00
Tulir Asokan
f268ddd132 Add option for autojoining threads when opened 2022-10-28 23:35:31 +03:00
Tulir Asokan
1ced229be9 Update mautrix-go for new bridge status package 2022-08-15 16:43:55 +03:00
Tulir Asokan
52f7ca1a49 Update Go in actions and add go vet to pre-commit 2022-08-15 16:19:44 +03:00
Tulir Asokan
7f0f77423d Bridge channel deletions from Discord 2022-07-09 16:51:43 +03:00
Tulir Asokan
ca8682657c Fix latest revision version 2022-07-08 22:34:45 +03:00
Tulir Asokan
c6fbaa90bf Re-add support for channel name templates 2022-07-08 20:49:23 +03:00
Tulir Asokan
2611cbfa34 Store role list in database and convert role mentions into a readable format 2022-07-08 15:31:07 +03:00
Tulir Asokan
2c57b47ad2 Store read state version and resync on startup if needed 2022-07-08 12:57:21 +03:00
Tulir Asokan
a33551e487 Bridge own read status in both directions 2022-07-08 12:00:55 +03:00
Tulir Asokan
ac7be4bb4e Don't try to insert nothing into the database. Fixes #11 2022-07-02 23:19:00 +03:00
Tulir Asokan
d3390cfd39 Fix mistake in database v4. Fixes #10 2022-06-30 21:54:05 +03:00
Tulir Asokan
98bc98627d Re-add support for deleting attachments 2022-06-27 16:13:26 +03:00
Tulir Asokan
91e1baaceb Add untested SQLite support for attachment db upgrade 2022-06-27 11:19:18 +03:00
Tulir Asokan
b7608ca051 Remove attachment table from latest revision upgrade 2022-06-27 11:18:22 +03:00
Tulir Asokan
21269d91dd Remove separate attachment table. Fixes #8 2022-06-27 11:18:22 +03:00
Tulir Asokan
a55dcc7c9f Remove legacy db migration 2022-06-27 11:18:22 +03:00
Tulir Asokan
7f8abc1f04 Fix scanning reaction rows 2022-06-15 15:27:57 +03:00
Tulir Asokan
800ca360c3 Fix inserting attachments. Fixes #2 2022-06-06 11:29:59 +01:00
Tulir Asokan
d797541cdc Add DM rooms to space 2022-05-28 23:41:34 +03:00
Tulir Asokan
91dbc83b5d Break a bunch of stuff 2022-05-28 23:03:24 +03:00
Tulir Asokan
4c7829c304 Update database schema and fix things 2022-05-27 15:58:09 +03:00
Tulir Asokan
8c66a064e1 Fix channel names getting corrupted on own message 2022-05-23 23:18:10 +03:00
Tulir Asokan
17288f3d04 Log startup errors and only try to start users who have a token 2022-05-23 23:17:42 +03:00
Tulir Asokan
888731cec2 Switch to spaces in .sql files 2022-05-23 20:01:03 +03:00
Tulir Asokan
a40ad4d10f Fix db upgrade file name 2022-05-22 22:54:07 +03:00
Tulir Asokan
9f9f7ca4fd Switch startup, config, commands and db migrations to mautrix-go systems 2022-05-22 22:16:42 +03:00
Tulir Asokan
cf5384d908 Merge remote-tracking branch 'beeper/main' 2022-05-21 00:13:33 +03:00
Tulir Asokan
b8990c1898 Move to mautrix 2022-05-20 16:37:41 +03:00
Sumner Evans
fdb219bb82 sqlstatestore: fix query for FindSharedRooms
There were missing spaces in the string concatenation
2022-04-27 22:00:07 -06:00
Gary Kramlich
c5f58afe71 End to bridge encryption implementation
So far this is passing my basic tests, but could use some testing from people
that are much more familiar with how this is supposed to work.

Refs #27
2022-04-27 12:43:12 -05:00
Gary Kramlich
2a7fc8eabf Make sure to properly set NULL for portal.mxid if we don't have one.
When this gets set to empty string it causes primary key to fail and cascades
into other issues like the inability to deduplicate messages.

Refs #26
2022-04-07 13:46:51 -05:00
Gary Kramlich
a56864f924 Make some guild log messages a bit more informative 2022-04-07 13:22:23 -05:00
Sumner Evans
f256ff94f7 database/userquery: fix selects from user table 2022-04-01 16:36:55 -06:00
Sumner Evans
4e7a81891f database/migrations: fix migration 07 for postgresql 2022-04-01 15:43:20 -06:00
Gary Kramlich
928a49b42d Keep track of guild states.
We don't currently bridge anything, but this just keeps everything in sync
with the discord server.
2022-03-29 07:10:16 -05:00
Gary Kramlich
2db80efad5 remove some debug messages 2022-02-28 04:52:31 -06:00
Gary Kramlich
44443b4079 Fix an issue where additional users weren't being persisted 2022-02-28 00:32:19 -06:00
Gary Kramlich
dc3bdc2cec Double puppet support 2022-02-27 22:46:11 -06:00
Gary Kramlich
c6be694106 Update the database for custom puppets 2022-02-23 03:26:23 -06:00
Gary Kramlich
4b87ea1cc7 Add (dis|re)connect commands and provision api
Also fixed a number of data races.
2022-02-22 07:56:15 -06:00
Gary Kramlich
d883befee5 Basic provisioning api
Includes: login, logout, and ping.
2022-02-22 02:51:22 -06:00
Gary Kramlich
a51b1074ba Add support for custom emoji in reactions.
This seems to be working correctly, but element-desktop isn't rendering them,
not sure if that's expected or not.

Closes #4
2022-02-19 10:14:43 -06:00
Gary Kramlich
7f99dc4a9e Implement attachments for Discord -> Matrix 2022-02-19 06:20:07 -06:00
Gary Kramlich
6a688f01b7 Quote the user table table for postgres
Fixes #11
2022-02-14 16:46:42 -06:00
Gary Kramlich
c2e1c35dca Add support for edited messages from discord 2022-02-11 02:43:54 -06:00
Gary Kramlich
3e9f927ed4 Add support for deleting messages from discord 2022-02-08 05:18:25 -06:00
Gary Kramlich
8380c4b1b0 Finish up reaction removals from both sides
Also implement redactions on the matrix side
2022-02-08 03:51:29 -06:00
Gary Kramlich
9d13905a77 Add the db for reactions and removals from discord 2022-02-07 16:42:58 -06:00