1
0
Fork 0

Support m->d redacting messages and reactions

This commit is contained in:
Cadence Ember 2023-09-25 16:26:48 +13:00
parent 2e68c7edf5
commit 8d3ac665c9
7 changed files with 74 additions and 2 deletions

View file

@ -70,4 +70,10 @@ CREATE TABLE IF NOT EXISTS "emoji" (
"mxc_url" TEXT NOT NULL,
PRIMARY KEY("id")
) WITHOUT ROWID;
CREATE TABLE IF NOT EXISTS "reaction" (
"hashed_event_id" INTEGER NOT NULL,
"message_id" TEXT NOT NULL,
"encoded_emoji" TEXT NOT NULL,
PRIMARY KEY ("hashed_event_id")
) WITHOUT ROWID;
COMMIT;

6
db/orm-utils.d.ts vendored
View file

@ -69,6 +69,12 @@ export type Models = {
animated: number
mxc_url: string
}
reaction: {
hashed_event_id: number
message_id: string
encoded_emoji: string
}
}
export type Prepared<Row> = {