1
0
Fork 0
mirror of https://github.com/mautrix/signal.git synced 2026-05-15 13:46:55 -04:00
Commit graph

8 commits

Author SHA1 Message Date
Tulir Asokan
35db0abe8b
Refactor database tables and query wrappers (#402)
* Change most columns to `NOT NULL`, including primary keys
  (because SQLite).
* Change columns only storing signal user IDs (portal receiver, message
  sender, user uuid) to use the `uuid` type instead of `TEXT`.
* Drop chat ID from message table primary key.
* Add part index to message table to replace timestamp hack for storing
  multiple parts of the same message.
* Change query wrappers to use new QureyHelper struct in dbutil, and 
  pass contexts and errors everywhere.

As a part of changing the portal receiver from phone number to uuid,
old portals whose receiver isn't logged in anymore may be discarded.
The discarded portals will be stored in the lost_portals table for
cleanup or recovery.
2023-12-31 16:12:58 +02:00
Tulir Asokan
ae60c41282 Actually update protobufs 2023-12-21 18:06:58 +02:00
Tulir Asokan
8260ba1559 Add support for Matrix -> Signal formatting 2023-12-21 16:57:21 +02:00
Tulir Asokan
45c2ce2cd9 Fix Go 1.20 compatibility 2023-12-17 23:30:45 +02:00
Tulir Asokan
4072495da6 Add another test 2023-12-17 23:26:53 +02:00
Tulir Asokan
6a5fc0faa3 Fix handling overflowing body ranges 2023-12-17 23:18:25 +02:00
Tulir Asokan
1b3aac0841 Add some comments and tests to format parser 2023-12-17 23:18:23 +02:00
Tulir Asokan
61ef8904e9 Add support for Signal -> Matrix formatting 2023-12-17 22:50:09 +02:00