Fix search results view for layouts other than Group/Modern (#7648)

This commit is contained in:
Michael Telatynski 2022-01-26 20:15:44 +00:00 committed by GitHub
parent 31e6b942f2
commit 50f8c61fa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 69 additions and 26 deletions

View file

@ -26,6 +26,12 @@ import { toPx } from "../../../utils/units";
import { replaceableComponent } from "../../../utils/replaceableComponent";
import MemberAvatar from '../avatars/MemberAvatar';
export interface IReadReceiptInfo {
top?: number;
left?: number;
parent?: Element;
}
interface IProps {
// the RoomMember to show the RR for
member?: RoomMember;
@ -43,10 +49,8 @@ interface IProps {
// don't animate this RR into position
suppressAnimation?: boolean;
// an opaque object for storing information about this user's RR in
// this room
// TODO: proper typing for RR info
readReceiptInfo: any;
// an opaque object for storing information about this user's RR in this room
readReceiptInfo: IReadReceiptInfo;
// A function which is used to check if the parent panel is being
// unmounted, to avoid unnecessary work. Should return true if we