diff --git a/src/MatrixEventHandler.ts b/src/MatrixEventHandler.ts index 2369f907..8ca901a4 100644 --- a/src/MatrixEventHandler.ts +++ b/src/MatrixEventHandler.ts @@ -314,7 +314,7 @@ export class MatrixEventHandler { formatted_body: marked.parse(body), }); } else if (args[0] === "accounts" && args.length === 1) { - const users = await this.store.getRemoteUsersFromMxId(event.sender) || []; + const users = await this.store.getAllAccountsForMatrixUser(event.sender) || []; let body = "Linked accounts:\n"; body += users.map((remoteUser: BifrostRemoteUser) => { let account: IBifrostAccount|null = null;