You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Fix search results view for layouts other than Group/Modern (#7648)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							31e6b942f2
						
					
				
				
					commit
					50f8c61fa8
				
			@@ -52,6 +52,7 @@ import { RoomPermalinkCreator } from "../../utils/permalinks/Permalinks";
 | 
			
		||||
import EditorStateTransfer from "../../utils/EditorStateTransfer";
 | 
			
		||||
import { Action } from '../../dispatcher/actions';
 | 
			
		||||
import { getEventDisplayInfo } from "../../utils/EventUtils";
 | 
			
		||||
import { IReadReceiptInfo } from "../views/rooms/ReadReceiptMarker";
 | 
			
		||||
 | 
			
		||||
const CONTINUATION_MAX_INTERVAL = 5 * 60 * 1000; // 5 minutes
 | 
			
		||||
const continuedTypes = [EventType.Sticker, EventType.RoomMessage];
 | 
			
		||||
@@ -72,7 +73,7 @@ export function shouldFormContinuation(
 | 
			
		||||
): boolean {
 | 
			
		||||
    if (timelineRenderingType === TimelineRenderingType.ThreadsList) return false;
 | 
			
		||||
    // sanity check inputs
 | 
			
		||||
    if (!prevEvent || !prevEvent.sender || !mxEvent.sender) return false;
 | 
			
		||||
    if (!prevEvent?.sender || !mxEvent.sender) return false;
 | 
			
		||||
    // check if within the max continuation period
 | 
			
		||||
    if (mxEvent.getTs() - prevEvent.getTs() > CONTINUATION_MAX_INTERVAL) return false;
 | 
			
		||||
 | 
			
		||||
@@ -208,7 +209,7 @@ export default class MessagePanel extends React.Component<IProps, IState> {
 | 
			
		||||
 | 
			
		||||
    // opaque readreceipt info for each userId; used by ReadReceiptMarker
 | 
			
		||||
    // to manage its animations
 | 
			
		||||
    private readonly readReceiptMap: Record<string, object> = {};
 | 
			
		||||
    private readonly readReceiptMap: { [userId: string]: IReadReceiptInfo } = {};
 | 
			
		||||
 | 
			
		||||
    // Track read receipts by event ID. For each _shown_ event ID, we store
 | 
			
		||||
    // the list of read receipts to display:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user