Commit Graph

109 Commits

Author SHA1 Message Date
064b5b8fed Don't use transaction for querying values 2020-04-02 21:53:45 +03:00
6a42de73d1 Check if constraint exists before trying to delete 2020-04-02 21:37:51 +03:00
9b01166f0c Ignore error in upgrade to allow Postgres 12 to work. Fixes #133 2020-04-02 21:11:38 +03:00
3a9642386c Fix state store migration 2020-03-26 23:36:47 +02:00
0fba1db6aa Fix room topic length (#108) 2019-11-17 21:10:02 +02:00
3caca1b9a0 Fix NeedsRelaybot check for groups too 2019-11-11 22:41:58 +02:00
03d42640fe Add basic relaybot support. Fixes #20 2019-11-10 21:22:11 +02:00
aa78c8c21b Migrate registrations in batches 2019-10-01 21:14:23 +02:00
0d4453d2e8 Skip state store migrations if state store is empty 2019-08-30 21:08:32 +03:00
2313321d01 Improve startup sync timeout handling 2019-08-30 20:57:08 +03:00
7413163df2 Migrate room user profiles from mx-state.json in batches. Fixes #93 2019-08-27 15:30:22 +03:00
f91812f3e9 Fix membership db scan error message 2019-08-25 21:54:11 +03:00
0f36ee0168 Add way to migrate database 2019-08-25 19:26:04 +03:00
3be9aa2319 Improve errors in state store migration edge cases 2019-08-25 17:25:19 +03:00
ab91d326fd Move Matrix state store to main database. Fixes #64 2019-08-25 16:29:35 +03:00
7bf470d69e Add portal rooms to user-specific community for filtering 2019-08-10 15:28:12 +03:00
921c1209ea Enable foreign keys in SQLite 2019-07-18 00:17:25 +03:00
2bc0e52250 Fix puppet db inserts. Fixes #69 2019-06-13 21:28:14 +03:00
e124641107 Add option to set private chat portal rooms' name/avatar explicitly 2019-06-01 20:03:29 +03:00
dce08b1422 Add user-portal mapping to database 2019-05-28 21:31:25 +03:00
063ec7873d Don't allow unsupported database versions without flag 2019-05-28 21:29:43 +03:00
2c9c473040 Add basic Matrix puppeting support
May contain bugs.
EDUs from /sync are not yet handled.
2019-05-24 02:33:30 +03:00
95e62fae77 Upgrade message content in db to new protocol schema 2019-05-24 01:09:42 +03:00
14f96bd96f Fix some bugs in missed message and initial history filling 2019-05-22 23:05:58 +03:00
b363547bdf Possibly significantly improve how portals are created and synced 2019-05-22 16:46:18 +03:00
6cda7ab549 Add ON DELETE CASCADE for future sqlite databases too 2019-05-17 13:10:46 +03:00
b0d774a5a5 Add database migrations and handle leaving private chat portals. Fixes #7 2019-05-16 21:26:43 +03:00
c1e1964fc5 Add WhatsApp<->Matrix redaction bridging 2019-05-16 02:25:13 +03:00
9dde189438 Make message.CreateTable usable on postgres and sqlite 2019-03-06 23:03:19 +01:00
d46578894e Rename user table back 2019-03-06 22:57:38 +01:00
2d3de9740c Update user.go 2019-03-06 22:26:55 +01:00
539699ba04 Update user.go 2019-03-06 22:23:15 +01:00
c1e20f96d0 Update puppet.go 2019-03-06 22:23:10 +01:00
d91bc8c346 Update portal.go 2019-03-06 22:23:05 +01:00
7c513c2f09 Update message.go 2019-03-06 22:22:54 +01:00
aaa57b353f Update database.go 2019-03-06 22:22:12 +01:00
96a509384d Update database.go 2019-03-06 18:29:15 +01:00
aeb692d616 Update database.go 2019-03-06 18:18:40 +01:00
daf0faab61 Fixed many database issues 2019-03-06 16:33:42 +01:00
6547a2ce1f changed sqlite to postgresql 2019-03-06 10:59:52 +01:00
9e170f3d04 Add a bunch of new logging 2019-01-21 23:55:16 +02:00
79bd35964f Update license year, Dockerfile, docker-run.sh and deps and add editorconfig 2019-01-12 15:54:04 +02:00
1cccefd34c Switch to Go modules 2019-01-11 21:17:39 +02:00
8427fedf98 parse management room from database as well 2018-10-16 21:58:12 +02:00
a893377cc5 Fix Puppet.Scan() 2018-09-02 00:44:10 +03:00
68c0190594 Rename binary content en/decode functions 2018-09-01 23:53:47 +03:00
ed27fa775e Re-break everything and fix Matrix->WhatsApp replies 2018-09-01 23:38:03 +03:00
22cdf519f2 Fix desegregation changes to make the bridge work again 2018-08-30 01:10:26 +03:00
c7348f29b0 Initial desegregation of users and automatic config updating 2018-08-29 00:40:54 +03:00
22e76b6a37 Format 2018-08-26 22:53:13 +03:00