@@ -269,9 +269,6 @@ export interface IRoomState {
269269 showHiddenEvents : boolean ;
270270 showReadReceipts : boolean ;
271271 showRedactions : boolean ;
272- showJoinLeaves : boolean ;
273- showAvatarChanges : boolean ;
274- showDisplaynameChanges : boolean ;
275272 matrixClientIsReady : boolean ;
276273 showUrlPreview : boolean ;
277274 e2eStatus ?: E2EStatus ;
@@ -499,9 +496,6 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
499496 showHiddenEvents : SettingsStore . getValue ( "showHiddenEventsInTimeline" ) ,
500497 showReadReceipts : true ,
501498 showRedactions : true ,
502- showJoinLeaves : true ,
503- showAvatarChanges : true ,
504- showDisplaynameChanges : true ,
505499 // Default to false to avoid any accidental leakage.
506500 showUrlPreview : false ,
507501 matrixClientIsReady : context . client ?. isInitialSyncComplete ( ) ,
@@ -656,9 +650,6 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
656650 shouldPeek : shouldPeek ,
657651 showReadReceipts : SettingsStore . getValue ( "showReadReceipts" , roomId ) ,
658652 showRedactions : SettingsStore . getValue ( "showRedactions" , roomId ) ,
659- showJoinLeaves : SettingsStore . getValue ( "showJoinLeaves" , roomId ) ,
660- showAvatarChanges : SettingsStore . getValue ( "showAvatarChanges" , roomId ) ,
661- showDisplaynameChanges : SettingsStore . getValue ( "showDisplaynameChanges" , roomId ) ,
662653 wasContextSwitch : wasContextSwitch ,
663654 mainSplitContentType : room ? this . getMainSplitContentType ( room ) : undefined ,
664655 initialEventId : undefined , // default to clearing this, will get set later in the method if needed
@@ -723,15 +714,6 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
723714 SettingsStore . watchSetting ( "showRedactions" , roomId , ( ...[ , , , value ] ) =>
724715 this . setState ( { showRedactions : value as boolean } ) ,
725716 ) ,
726- SettingsStore . watchSetting ( "showJoinLeaves" , roomId , ( ...[ , , , value ] ) =>
727- this . setState ( { showJoinLeaves : value as boolean } ) ,
728- ) ,
729- SettingsStore . watchSetting ( "showAvatarChanges" , roomId , ( ...[ , , , value ] ) =>
730- this . setState ( { showAvatarChanges : value as boolean } ) ,
731- ) ,
732- SettingsStore . watchSetting ( "showDisplaynameChanges" , roomId , ( ...[ , , , value ] ) =>
733- this . setState ( { showDisplaynameChanges : value as boolean } ) ,
734- ) ,
735717 ] ) ;
736718
737719 if ( ! initial && this . state . shouldPeek && ! newState . shouldPeek ) {
0 commit comments