@@ -2154,36 +2154,32 @@ describe("Room", function() {
21542154 expect ( room . eventShouldLiveIn ( threadReaction2Redaction , events , roots ) . threadId ) . toBe ( threadRoot . getId ( ) ) ;
21552155 } ) ;
21562156
2157- it ( "reply to thread response and its relations&redactions should be only in thread timeline" , ( ) => {
2157+ it ( "reply to thread response and its relations&redactions should be only in main timeline" , ( ) => {
21582158 const threadRoot = mkMessage ( ) ;
21592159 const threadResponse1 = mkThreadResponse ( threadRoot ) ;
21602160 const reply1 = mkReply ( threadResponse1 ) ;
2161- const threadReaction1 = mkReaction ( reply1 ) ;
2162- const threadReaction2 = mkReaction ( reply1 ) ;
2163- const threadReaction2Redaction = mkRedaction ( reply1 ) ;
2161+ const reaction1 = mkReaction ( reply1 ) ;
2162+ const reaction2 = mkReaction ( reply1 ) ;
2163+ const reaction2Redaction = mkRedaction ( reply1 ) ;
21642164
21652165 const roots = new Set ( [ threadRoot . getId ( ) ] ) ;
21662166 const events = [
21672167 threadRoot ,
21682168 threadResponse1 ,
21692169 reply1 ,
2170- threadReaction1 ,
2171- threadReaction2 ,
2172- threadReaction2Redaction ,
2170+ reaction1 ,
2171+ reaction2 ,
2172+ reaction2Redaction ,
21732173 ] ;
21742174
2175- expect ( room . eventShouldLiveIn ( reply1 , events , roots ) . shouldLiveInRoom ) . toBeFalsy ( ) ;
2176- expect ( room . eventShouldLiveIn ( reply1 , events , roots ) . shouldLiveInThread ) . toBeTruthy ( ) ;
2177- expect ( room . eventShouldLiveIn ( reply1 , events , roots ) . threadId ) . toBe ( threadRoot . getId ( ) ) ;
2178- expect ( room . eventShouldLiveIn ( threadReaction1 , events , roots ) . shouldLiveInRoom ) . toBeFalsy ( ) ;
2179- expect ( room . eventShouldLiveIn ( threadReaction1 , events , roots ) . shouldLiveInThread ) . toBeTruthy ( ) ;
2180- expect ( room . eventShouldLiveIn ( threadReaction1 , events , roots ) . threadId ) . toBe ( threadRoot . getId ( ) ) ;
2181- expect ( room . eventShouldLiveIn ( threadReaction2 , events , roots ) . shouldLiveInRoom ) . toBeFalsy ( ) ;
2182- expect ( room . eventShouldLiveIn ( threadReaction2 , events , roots ) . shouldLiveInThread ) . toBeTruthy ( ) ;
2183- expect ( room . eventShouldLiveIn ( threadReaction2 , events , roots ) . threadId ) . toBe ( threadRoot . getId ( ) ) ;
2184- expect ( room . eventShouldLiveIn ( threadReaction2Redaction , events , roots ) . shouldLiveInRoom ) . toBeFalsy ( ) ;
2185- expect ( room . eventShouldLiveIn ( threadReaction2Redaction , events , roots ) . shouldLiveInThread ) . toBeTruthy ( ) ;
2186- expect ( room . eventShouldLiveIn ( threadReaction2Redaction , events , roots ) . threadId ) . toBe ( threadRoot . getId ( ) ) ;
2175+ expect ( room . eventShouldLiveIn ( reply1 , events , roots ) . shouldLiveInRoom ) . toBeTruthy ( ) ;
2176+ expect ( room . eventShouldLiveIn ( reply1 , events , roots ) . shouldLiveInThread ) . toBeFalsy ( ) ;
2177+ expect ( room . eventShouldLiveIn ( reaction1 , events , roots ) . shouldLiveInRoom ) . toBeTruthy ( ) ;
2178+ expect ( room . eventShouldLiveIn ( reaction1 , events , roots ) . shouldLiveInThread ) . toBeFalsy ( ) ;
2179+ expect ( room . eventShouldLiveIn ( reaction2 , events , roots ) . shouldLiveInRoom ) . toBeTruthy ( ) ;
2180+ expect ( room . eventShouldLiveIn ( reaction2 , events , roots ) . shouldLiveInThread ) . toBeFalsy ( ) ;
2181+ expect ( room . eventShouldLiveIn ( reaction2Redaction , events , roots ) . shouldLiveInRoom ) . toBeTruthy ( ) ;
2182+ expect ( room . eventShouldLiveIn ( reaction2Redaction , events , roots ) . shouldLiveInThread ) . toBeFalsy ( ) ;
21872183 } ) ;
21882184
21892185 it ( "reply to reply to thread root should only be in the main timeline" , ( ) => {
0 commit comments