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 <ani@wiuf.net>
This commit is contained in:
Ani
2026-03-16 12:11:12 -04:00
parent 77cf3c2a35
commit 9a972c30a2

View File

@@ -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);
}
/**