@@ -167,7 +167,7 @@ describe("DeviceList management:", function() {
167167 aliceTestClient . client . crypto . deviceList . saveIfDirty ( ) ,
168168 ] ) ;
169169 } ) . then ( ( ) => {
170- aliceTestClient . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
170+ aliceTestClient . client . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
171171 expect ( data . syncToken ) . toEqual ( 1 ) ;
172172 } ) ;
173173
@@ -203,7 +203,7 @@ describe("DeviceList management:", function() {
203203 expect ( flushed ) . toEqual ( 0 ) ;
204204 return aliceTestClient . client . crypto . deviceList . saveIfDirty ( ) ;
205205 } ) . then ( ( ) => {
206- aliceTestClient . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
206+ aliceTestClient . client . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
207207 const bobStat = data . trackingStatus [ '@bob:xyz' ] ;
208208 if ( bobStat != 1 && bobStat != 2 ) {
209209 throw new Error ( 'Unexpected status for bob: wanted 1 or 2, got ' +
@@ -236,7 +236,7 @@ describe("DeviceList management:", function() {
236236 } ) . then ( ( ) => {
237237 return aliceTestClient . client . crypto . deviceList . saveIfDirty ( ) ;
238238 } ) . then ( ( ) => {
239- aliceTestClient . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
239+ aliceTestClient . client . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
240240 const bobStat = data . trackingStatus [ '@bob:xyz' ] ;
241241 expect ( bobStat ) . toEqual ( 3 ) ;
242242 const chrisStat = data . trackingStatus [ '@chris:abc' ] ;
@@ -257,7 +257,7 @@ describe("DeviceList management:", function() {
257257 } ) . then ( ( ) => {
258258 return aliceTestClient . client . crypto . deviceList . saveIfDirty ( ) ;
259259 } ) . then ( ( ) => {
260- aliceTestClient . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
260+ aliceTestClient . client . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
261261 const bobStat = data . trackingStatus [ '@bob:xyz' ] ;
262262 const chrisStat = data . trackingStatus [ '@bob:xyz' ] ;
263263
@@ -287,7 +287,7 @@ describe("DeviceList management:", function() {
287287 await aliceTestClient . httpBackend . flush ( '/keys/query' , 1 ) ;
288288 await aliceTestClient . client . crypto . deviceList . saveIfDirty ( ) ;
289289
290- aliceTestClient . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
290+ aliceTestClient . client . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
291291 const bobStat = data . trackingStatus [ '@bob:xyz' ] ;
292292
293293 expect ( bobStat ) . toBeGreaterThan (
@@ -323,7 +323,7 @@ describe("DeviceList management:", function() {
323323 await aliceTestClient . flushSync ( ) ;
324324 await aliceTestClient . client . crypto . deviceList . saveIfDirty ( ) ;
325325
326- aliceTestClient . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
326+ aliceTestClient . client . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
327327 const bobStat = data . trackingStatus [ '@bob:xyz' ] ;
328328
329329 expect ( bobStat ) . toEqual (
@@ -359,7 +359,7 @@ describe("DeviceList management:", function() {
359359 await aliceTestClient . flushSync ( ) ;
360360 await aliceTestClient . client . crypto . deviceList . saveIfDirty ( ) ;
361361
362- aliceTestClient . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
362+ aliceTestClient . client . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
363363 const bobStat = data . trackingStatus [ '@bob:xyz' ] ;
364364
365365 expect ( bobStat ) . toEqual (
@@ -380,7 +380,7 @@ describe("DeviceList management:", function() {
380380 await anotherTestClient . flushSync ( ) ;
381381 await anotherTestClient . client . crypto . deviceList . saveIfDirty ( ) ;
382382
383- anotherTestClient . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
383+ anotherTestClient . client . cryptoStore . getEndToEndDeviceData ( null , ( data ) => {
384384 const bobStat = data . trackingStatus [ '@bob:xyz' ] ;
385385
386386 expect ( bobStat ) . toEqual (
0 commit comments