You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-05 15:22:09 +03:00
Opt out from check for pre-join UISI for threads (#7834)
This commit is contained in:
@@ -1331,8 +1331,12 @@ class TimelinePanel extends React.Component<IProps, IState> {
|
|||||||
private checkForPreJoinUISI(events: MatrixEvent[]): number {
|
private checkForPreJoinUISI(events: MatrixEvent[]): number {
|
||||||
const room = this.props.timelineSet.room;
|
const room = this.props.timelineSet.room;
|
||||||
|
|
||||||
if (events.length === 0 || !room ||
|
const isThreadTimeline = [TimelineRenderingType.Thread, TimelineRenderingType.ThreadsList]
|
||||||
!MatrixClientPeg.get().isRoomEncrypted(room.roomId)) {
|
.includes(this.context.timelineRenderingType);
|
||||||
|
if (events.length === 0
|
||||||
|
|| !room
|
||||||
|
|| !MatrixClientPeg.get().isRoomEncrypted(room.roomId)
|
||||||
|
|| isThreadTimeline) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user