Commit Graph

13 Commits

Author SHA1 Message Date
Alex 7130c7b7d6 Security against deletion of dbPmRoomMap entries 2020-10-04 20:00:17 +02:00
Alex d3ab4fa8ca Update go packages; remove db cache 2020-10-04 19:20:32 +02:00
Alex 2649e41c85 Allow _ezbr_ to be put in suffix of usernames/room aliases instead of prefix 2020-02-29 10:51:09 +01:00
Alex 38a3f1bdb1 Fix Mattermost event deduplication
Mattermost assigns its own IDs to messages, thus when sending a message
to Mattermost the event_seen key that has to be written must take into
account that ID and not the one that we put in the event (which was the
Matrix event ID)

Note that for XMPP anything can be used as an ID, so using the Matrix
event ID there worked, but it's actually not so good.
2020-02-29 10:01:42 +01:00
Alex 669c2c1c28 Actually gorm:"type:text" was useless
With the Postgres backend, strings will use text by default.
Using varchar(255) by default (which is stupid) is done only for sqlite,
which doesn't care about the type anyways.
2020-02-28 17:00:53 +01:00
Alex eaf245e3ee Fix db models to use text instead of varchar; remove unused columns & fix index names 2020-02-28 16:55:45 +01:00
Alex 5398e9fc0f Handle matrix left events correctly (hopefully) 2020-02-28 12:16:59 +01:00
Alex d03091dd01 Add LRU cache for some DB operations 2020-02-28 11:06:43 +01:00
Alex 8668b12a81 Rename DbCache to DbKv 2020-02-28 10:34:22 +01:00
Alex 19975e981e Logging done better 2020-02-27 10:35:09 +01:00
Alex f675ba57e4 Implement account configuration save/load from db 2020-02-26 20:21:32 +01:00
Alex f3f1b8d981 Room autorejoin 2020-02-26 16:30:10 +01:00
Alex 67c7f7361d Move appservice/ to / 2020-02-26 16:07:33 +01:00
Renamed from appservice/db.go (Browse further)