File tree 2 files changed +1
-2
lines changed
2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -727,7 +727,7 @@ export const Commands = [
727
727
isEnabled : ( cli ) => ! isCurrentLocalRoom ( cli ) ,
728
728
runFn : function ( cli , roomId ) {
729
729
try {
730
- cli . forceDiscardSession ( roomId ) ;
730
+ cli . getCrypto ( ) ?. forceDiscardSession ( roomId ) ;
731
731
} catch ( e ) {
732
732
return reject ( e instanceof Error ? e . message : e ) ;
733
733
}
Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ export function createTestClient(): MatrixClient {
166
166
} ) ;
167
167
} ) ,
168
168
mxcUrlToHttp : jest . fn ( ) . mockImplementation ( ( mxc : string ) => `http://this.is.a.url/${ mxc . substring ( 6 ) } ` ) ,
169
- scheduleAllGroupSessionsForBackup : jest . fn ( ) . mockResolvedValue ( undefined ) ,
170
169
setAccountData : jest . fn ( ) ,
171
170
setRoomAccountData : jest . fn ( ) ,
172
171
setRoomTopic : jest . fn ( ) ,
You can’t perform that action at this time.
0 commit comments