@@ -118,7 +118,7 @@ func TestJumpToDateEndpoint(t *testing.T) {
118118 // Make the `/timestamp_to_event` request from Bob's perspective (non room member)
119119 timestamp := makeTimestampFromTime (timeBeforeRoomCreation )
120120 timestampString := strconv .FormatInt (timestamp , 10 )
121- timestampToEventRes := nonMemberUser .DoFunc (t , "GET" , []string {"_matrix" , "client" , "unstable" , "org.matrix.msc3030 " , "rooms" , roomID , "timestamp_to_event" }, client .WithContentType ("application/json" ), client .WithQueries (url.Values {
121+ timestampToEventRes := nonMemberUser .DoFunc (t , "GET" , []string {"_matrix" , "client" , "v1 " , "rooms" , roomID , "timestamp_to_event" }, client .WithContentType ("application/json" ), client .WithQueries (url.Values {
122122 "ts" : []string {timestampString },
123123 "dir" : []string {"f" },
124124 }))
@@ -146,7 +146,7 @@ func TestJumpToDateEndpoint(t *testing.T) {
146146 // Make the `/timestamp_to_event` request from Bob's perspective (non room member)
147147 timestamp := makeTimestampFromTime (timeBeforeRoomCreation )
148148 timestampString := strconv .FormatInt (timestamp , 10 )
149- timestampToEventRes := nonMemberUser .DoFunc (t , "GET" , []string {"_matrix" , "client" , "unstable" , "org.matrix.msc3030 " , "rooms" , roomID , "timestamp_to_event" }, client .WithContentType ("application/json" ), client .WithQueries (url.Values {
149+ timestampToEventRes := nonMemberUser .DoFunc (t , "GET" , []string {"_matrix" , "client" , "v1 " , "rooms" , roomID , "timestamp_to_event" }, client .WithContentType ("application/json" ), client .WithQueries (url.Values {
150150 "ts" : []string {timestampString },
151151 "dir" : []string {"f" },
152152 }))
@@ -300,7 +300,7 @@ func mustCheckEventisReturnedForTime(t *testing.T, c *client.CSAPI, roomID strin
300300
301301 givenTimestamp := makeTimestampFromTime (givenTime )
302302 timestampString := strconv .FormatInt (givenTimestamp , 10 )
303- timestampToEventRes := c .DoFunc (t , "GET" , []string {"_matrix" , "client" , "unstable" , "org.matrix.msc3030 " , "rooms" , roomID , "timestamp_to_event" }, client .WithContentType ("application/json" ), client .WithQueries (url.Values {
303+ timestampToEventRes := c .DoFunc (t , "GET" , []string {"_matrix" , "client" , "v1 " , "rooms" , roomID , "timestamp_to_event" }, client .WithContentType ("application/json" ), client .WithQueries (url.Values {
304304 "ts" : []string {timestampString },
305305 "dir" : []string {direction },
306306 }))
0 commit comments