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:
@@ -854,7 +854,7 @@ export class MatrixAdapter implements ChannelAdapter {
|
|||||||
const fs = await import('fs');
|
const fs = await import('fs');
|
||||||
const path = await import('path');
|
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 storeDir = path.resolve(this.config.storeDir || './data/matrix');
|
||||||
const decryptedKeysFile = path.join(storeDir, 'imported-keys.json');
|
const decryptedKeysFile = path.join(storeDir, 'imported-keys.json');
|
||||||
|
|
||||||
@@ -1540,7 +1540,7 @@ export class MatrixAdapter implements ChannelAdapter {
|
|||||||
* Track a sent message for reaction feedback
|
* Track a sent message for reaction feedback
|
||||||
*/
|
*/
|
||||||
onMessageSent(chatId: string, messageId: string, stepId?: string): void {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user