Skip to content

Commit

Permalink
Fix "accounts" command (always return undefined [Protocol not enabled])
Browse files Browse the repository at this point in the history
Changed from protocolId to protocol_id which matches the key in the db file

Signed-off-by: Ghabry <[email protected]>
  • Loading branch information
Ghabry committed Aug 16, 2020
1 parent 7478c9a commit 7e4380c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MatrixEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class MatrixEventHandler {
const users = await this.bridge.getUserStore().getRemoteUsersFromMatrixId(event.sender);
let body = "Linked accounts:\n";
body += users.map((remoteUser: RemoteUser) => {
const pid = remoteUser.get("protocolId");
const pid = remoteUser.get("protocol_id");
const username = remoteUser.get("username");
let account: IBifrostAccount|null = null;
try {
Expand Down

0 comments on commit 7e4380c

Please sign in to comment.