feat: add type column to dm_messages for system message support
Adds a `type` column (TEXT NOT NULL DEFAULT 'user') to the dm_messages table via schema, migration, and type definition. Updates buildDmMessageWithUser and the inline replyTo builder in the GET messages handler to include the field in all DM message responses.
This commit is contained in:
@@ -196,6 +196,12 @@ export function runMigrations(db: Database.Database): void {
|
||||
{ name: 'encryption_version', type: 'INTEGER DEFAULT 0' },
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'dm_messages',
|
||||
columns: [
|
||||
{ name: 'type', type: "TEXT NOT NULL DEFAULT 'user'" },
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'attachments',
|
||||
columns: [
|
||||
|
||||
Reference in New Issue
Block a user