From 7e4380c16a20d9343c0f63dc35441d2b5d81df07 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Fri, 8 Feb 2019 19:12:34 +0100 Subject: [PATCH] Fix "accounts" command (always return undefined [Protocol not enabled]) Changed from protocolId to protocol_id which matches the key in the db file Signed-off-by: Ghabry --- src/MatrixEventHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MatrixEventHandler.ts b/src/MatrixEventHandler.ts index ffec5807..a4c093c0 100644 --- a/src/MatrixEventHandler.ts +++ b/src/MatrixEventHandler.ts @@ -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 {