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

5 commits

Author SHA1 Message Date
Tulir Asokan
2eb41b5e83 Refactor recipient storage 2024-03-22 22:32:29 +02:00
Tulir Asokan
5bb2db43c0 Add support for PNI portals 2024-03-22 15:37:21 +02:00
Tulir Asokan
e2d8a24c99 Refactor group and user info updating 2024-01-05 22:10:59 +02:00
Tulir Asokan
9efe31d789 Refactor Signal -> Matrix message handling
Also add support for edits
2024-01-02 19:04:45 +02:00
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