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

Commit

Permalink
fix read receipts trickling down correctly (#9567)
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain authored Nov 11, 2022
1 parent fca6ff2 commit 1dbf9c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/components/views/avatars/MemberAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,11 @@ export default function MemberAvatar({
/>
);
}

export class LegacyMemberAvatar extends React.Component<IProps> {
public render(): JSX.Element {
return <MemberAvatar {...this.props}>
{ this.props.children }
</MemberAvatar>;
}
}
2 changes: 1 addition & 1 deletion src/components/views/rooms/ReadReceiptMarker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { logger } from "matrix-js-sdk/src/logger";

import NodeAnimator from "../../../NodeAnimator";
import { toPx } from "../../../utils/units";
import MemberAvatar from '../avatars/MemberAvatar';
import { LegacyMemberAvatar as MemberAvatar } from '../avatars/MemberAvatar';
import { READ_AVATAR_SIZE } from "./ReadReceiptGroup";

export interface IReadReceiptInfo {
Expand Down

0 comments on commit 1dbf9c2

Please sign in to comment.