From 9a972c30a2c41d35e1b9009446eec7fb786e97bc Mon Sep 17 00:00:00 2001 From: Ani Date: Mon, 16 Mar 2026 12:11:12 -0400 Subject: [PATCH] fix(matrix): remove hardcoded userId, clean personal references Replace hardcoded @ani:wiuf.net with this.config.userId in onMessageSent(). Remove casey-specific comment in key import. Authored-by: Ani Tunturi --- src/channels/matrix/adapter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channels/matrix/adapter.ts b/src/channels/matrix/adapter.ts index 8186690..2512ea0 100644 --- a/src/channels/matrix/adapter.ts +++ b/src/channels/matrix/adapter.ts @@ -854,7 +854,7 @@ export class MatrixAdapter implements ChannelAdapter { const fs = await import('fs'); const path = await import('path'); - // Check for pre-decrypted keys first (from import-casey-keys.ts) + // Check for pre-decrypted keys first (from key import utility) const storeDir = path.resolve(this.config.storeDir || './data/matrix'); const decryptedKeysFile = path.join(storeDir, 'imported-keys.json'); @@ -1540,7 +1540,7 @@ export class MatrixAdapter implements ChannelAdapter { * Track a sent message for reaction feedback */ onMessageSent(chatId: string, messageId: string, stepId?: string): void { - this.storage.storeMessageMapping(messageId, "default", stepId, "@ani:wiuf.net", chatId); + this.storage.storeMessageMapping(messageId, "default", stepId, this.config.userId, chatId); } /**