fix read receipts trickling down correctly (#9567)

This commit is contained in:
Germain 2022-11-11 09:39:35 +00:00 committed by GitHub
parent fca6ff271c
commit 1dbf9c205e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -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>;
}
}

View file

@ -21,7 +21,7 @@ import { logger } from "matrix-js-sdk/src/logger";
import NodeAnimator from "../../../NodeAnimator"; import NodeAnimator from "../../../NodeAnimator";
import { toPx } from "../../../utils/units"; import { toPx } from "../../../utils/units";
import MemberAvatar from '../avatars/MemberAvatar'; import { LegacyMemberAvatar as MemberAvatar } from '../avatars/MemberAvatar';
import { READ_AVATAR_SIZE } from "./ReadReceiptGroup"; import { READ_AVATAR_SIZE } from "./ReadReceiptGroup";
export interface IReadReceiptInfo { export interface IReadReceiptInfo {