Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "accounts" command (always return undefined [Protocol not enabled]) #44

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
Ghabry committed Aug 16, 2020

Verified

This commit was signed with the committer’s verified signature.
ktwrd kate
commit 7e4380c16a20d9343c0f63dc35441d2b5d81df07
2 changes: 1 addition & 1 deletion src/MatrixEventHandler.ts
Original file line number Diff line number Diff line change
@@ -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 {