From: Dessalines Date: Wed, 7 Apr 2021 16:02:11 +0000 (-0400) Subject: Fixing user page, issue with matrix button. Fixes #239 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/hacktivis.me/%22?a=commitdiff_plain;h=756a811b1dbd7fc6b9fa2cfd13fe555576312d1c;p=lemmy-ui.git Fixing user page, issue with matrix button. Fixes #239 --- diff --git a/src/shared/components/person.tsx b/src/shared/components/person.tsx index b1fec8c..6df2fef 100644 --- a/src/shared/components/person.tsx +++ b/src/shared/components/person.tsx @@ -437,26 +437,12 @@ export class Person extends Component { {i18n.t("logout")} ) : ( - <> - {/* TODO matrix ids aren't currently federated, so don't come back with GetPersonDetails - - {i18n.t("send_secure_message")} - - */} - - - {i18n.t("send_message")} - - + + {i18n.t("send_message")} + )} {pv.person.bio && ( @@ -496,6 +482,21 @@ export class Person extends Component { ); } + // TODO this isn't used currently + // matrixButton() { + // return ( + // + // {i18n.t("send_secure_message")} + // + // ); + // } + userSettings() { return (
@@ -1111,6 +1112,7 @@ export class Person extends Component { parseMessage(msg: any) { let op = wsUserOp(msg); + console.log(msg); if (msg.error) { toast(i18n.t(msg.error), "danger"); if (msg.error == "couldnt_find_that_username_or_email") { @@ -1129,6 +1131,7 @@ export class Person extends Component { // TODO this might need to get abstracted let data = wsJsonToRes(msg).data; this.state.personRes = data; + console.log(data); this.setUserInfo(); this.state.loading = false; this.setState(this.state);