Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix casing
Browse files Browse the repository at this point in the history
  • Loading branch information
weeman1337 committed Mar 3, 2023
1 parent 8d9fdc3 commit 368dea7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/views/right_panel/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ export const getE2EStatus = (cli: MatrixClient, userId: string, devices: IDevice
return anyDeviceUnverified ? E2EStatus.Warning : E2EStatus.Verified;
};

async function openDMForUser(matrixClient: MatrixClient, user: RoomMember): Promise<void> {
const startDMUser = new DirectoryMember({
async function openDmForUser(matrixClient: MatrixClient, user: RoomMember): Promise<void> {
const startDmUser = new DirectoryMember({
user_id: user.userId,
display_name: user.rawDisplayName,
avatar_url: user.getMxcAvatarUrl(),
});
startDmOnFirstMessage(matrixClient, [startDMUser]);
startDmOnFirstMessage(matrixClient, [startDmUser]);
}

type SetUpdating = (updating: boolean) => void;
Expand Down Expand Up @@ -320,7 +320,7 @@ const MessageButton = ({ member }: { member: RoomMember }): JSX.Element => {
onClick={async () => {
if (busy) return;
setBusy(true);
await openDMForUser(cli, member);
await openDmForUser(cli, member);
setBusy(false);
}}
className="mx_UserInfo_field"
Expand Down

0 comments on commit 368dea7

Please sign in to comment.