This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Replace event verification logic with new code in js-sdk #19799
Annotations
9 errors
src/components/views/rooms/EventTile.tsx#L603
TypeError: _MatrixClientPeg.MatrixClientPeg.safeGet(...).getCrypto(...)?.getEncryptionInfoForEvent is not a function
at UnwrappedEventTile.getEncryptionInfoForEvent [as verifyEvent] (src/components/views/rooms/EventTile.tsx:603:59)
at UnwrappedEventTile.verifyEvent [as componentDidMount] (src/components/views/rooms/EventTile.tsx:417:14)
at commitLifeCycles (node_modules/react-dom/cjs/react-dom.development.js:20663:24)
at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:23426:7)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:3994:16)
at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:4056:31)
at commitRootImpl (node_modules/react-dom/cjs/react-dom.development.js:23151:9)
at unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.development.js:468:12)
at runWithPriority$1 (node_modules/react-dom/cjs/react-dom.development.js:11276:10)
at commitRoot (node_modules/react-dom/cjs/react-dom.development.js:22990:3)
at performSyncWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:22329:3)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom.development.js:21881:7)
at updateContainer (node_modules/react-dom/cjs/react-dom.development.js:25482:3)
at node_modules/react-dom/cjs/react-dom.development.js:26021:7
at unbatchedUpdates (node_modules/react-dom/cjs/react-dom.development.js:22431:12)
at legacyRenderSubtreeIntoContainer (node_modules/react-dom/cjs/react-dom.development.js:26020:5)
at Object.render (node_modules/react-dom/cjs/react-dom.development.js:26103:10)
at node_modules/@testing-library/react/dist/pure.js:101:25
at batchedUpdates$1 (node_modules/react-dom/cjs/react-dom.development.js:22380:12)
at act (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1042:14)
at render (node_modules/@testing-library/react/dist/pure.js:97:26)
at getComponent (test/components/views/rooms/EventTile-test.tsx:67:22)
at Object.getComponent (test/components/views/rooms/EventTile-test.tsx:243:35)
|
test/components/views/rooms/EventTile-test.tsx#L250
expect(received).toHaveLength(expected)
Expected length: 1
Received length: 0
Received object: []
at Object.toHaveLength (test/components/views/rooms/EventTile-test.tsx:250:78)
|
src/components/views/rooms/EventTile.tsx#L603
TypeError: _MatrixClientPeg.MatrixClientPeg.safeGet(...).getCrypto(...)?.getEncryptionInfoForEvent is not a function
at UnwrappedEventTile.getEncryptionInfoForEvent [as verifyEvent] (src/components/views/rooms/EventTile.tsx:603:59)
at UnwrappedEventTile.verifyEvent [as componentDidMount] (src/components/views/rooms/EventTile.tsx:417:14)
at commitLifeCycles (node_modules/react-dom/cjs/react-dom.development.js:20663:24)
at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:23426:7)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:3994:16)
at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:4056:31)
at commitRootImpl (node_modules/react-dom/cjs/react-dom.development.js:23151:9)
at unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.development.js:468:12)
at runWithPriority$1 (node_modules/react-dom/cjs/react-dom.development.js:11276:10)
at commitRoot (node_modules/react-dom/cjs/react-dom.development.js:22990:3)
at performSyncWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:22329:3)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom.development.js:21881:7)
at updateContainer (node_modules/react-dom/cjs/react-dom.development.js:25482:3)
at node_modules/react-dom/cjs/react-dom.development.js:26021:7
at unbatchedUpdates (node_modules/react-dom/cjs/react-dom.development.js:22431:12)
at legacyRenderSubtreeIntoContainer (node_modules/react-dom/cjs/react-dom.development.js:26020:5)
at Object.render (node_modules/react-dom/cjs/react-dom.development.js:26103:10)
at node_modules/@testing-library/react/dist/pure.js:101:25
at batchedUpdates$1 (node_modules/react-dom/cjs/react-dom.development.js:22380:12)
at act (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1042:14)
at render (node_modules/@testing-library/react/dist/pure.js:97:26)
at getComponent (test/components/views/rooms/EventTile-test.tsx:67:22)
at Object.getComponent (test/components/views/rooms/EventTile-test.tsx:268:35)
|
src/components/views/rooms/EventTile.tsx#L603
TypeError: _MatrixClientPeg.MatrixClientPeg.safeGet(...).getCrypto(...)?.getEncryptionInfoForEvent is not a function
at UnwrappedEventTile.getEncryptionInfoForEvent [as verifyEvent] (src/components/views/rooms/EventTile.tsx:603:59)
at UnwrappedEventTile.verifyEvent [as componentDidMount] (src/components/views/rooms/EventTile.tsx:417:14)
at commitLifeCycles (node_modules/react-dom/cjs/react-dom.development.js:20663:24)
at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:23426:7)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:3994:16)
at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:4056:31)
at commitRootImpl (node_modules/react-dom/cjs/react-dom.development.js:23151:9)
at unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.development.js:468:12)
at runWithPriority$1 (node_modules/react-dom/cjs/react-dom.development.js:11276:10)
at commitRoot (node_modules/react-dom/cjs/react-dom.development.js:22990:3)
at performSyncWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:22329:3)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom.development.js:21881:7)
at updateContainer (node_modules/react-dom/cjs/react-dom.development.js:25482:3)
at node_modules/react-dom/cjs/react-dom.development.js:26021:7
at unbatchedUpdates (node_modules/react-dom/cjs/react-dom.development.js:22431:12)
at legacyRenderSubtreeIntoContainer (node_modules/react-dom/cjs/react-dom.development.js:26020:5)
at Object.render (node_modules/react-dom/cjs/react-dom.development.js:26103:10)
at node_modules/@testing-library/react/dist/pure.js:101:25
at batchedUpdates$1 (node_modules/react-dom/cjs/react-dom.development.js:22380:12)
at act (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1042:14)
at render (node_modules/@testing-library/react/dist/pure.js:97:26)
at getComponent (test/components/views/rooms/EventTile-test.tsx:67:22)
at Object.getComponent (test/components/views/rooms/EventTile-test.tsx:291:35)
|
src/components/views/rooms/EventTile.tsx#L603
TypeError: _MatrixClientPeg.MatrixClientPeg.safeGet(...).getCrypto(...)?.getEncryptionInfoForEvent is not a function
at UnwrappedEventTile.getEncryptionInfoForEvent [as verifyEvent] (src/components/views/rooms/EventTile.tsx:603:59)
at MatrixEvent.verifyEvent (src/components/views/rooms/EventTile.tsx:589:14)
at MatrixEvent.emit (matrix-js-sdk/src/models/typed-event-emitter.ts:89:22)
at MatrixEvent.emit [as makeReplaced] (matrix-js-sdk/src/models/event.ts:1422:18)
at makeReplaced (test/components/views/rooms/EventTile-test.tsx:313:25)
at batchedUpdates$1 (node_modules/react-dom/cjs/react-dom.development.js:22380:12)
at act (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1042:14)
at Object.<anonymous> (test/components/views/rooms/EventTile-test.tsx:312:22)
|
test/components/views/rooms/EventTile-test.tsx#L318
expect(received).toHaveLength(expected)
Expected length: 1
Received length: 0
Received object: []
at Object.toHaveLength (test/components/views/rooms/EventTile-test.tsx:318:78)
|
src/components/views/rooms/EventTile.tsx#L603
TypeError: _MatrixClientPeg.MatrixClientPeg.safeGet(...).getCrypto(...)?.getEncryptionInfoForEvent is not a function
at UnwrappedEventTile.getEncryptionInfoForEvent [as verifyEvent] (src/components/views/rooms/EventTile.tsx:603:59)
at UnwrappedEventTile.verifyEvent [as componentDidMount] (src/components/views/rooms/EventTile.tsx:417:14)
at commitLifeCycles (node_modules/react-dom/cjs/react-dom.development.js:20663:24)
at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:23426:7)
at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at HTMLUnknownElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:3994:16)
at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:4056:31)
at commitRootImpl (node_modules/react-dom/cjs/react-dom.development.js:23151:9)
at unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.development.js:468:12)
at runWithPriority$1 (node_modules/react-dom/cjs/react-dom.development.js:11276:10)
at commitRoot (node_modules/react-dom/cjs/react-dom.development.js:22990:3)
at performSyncWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:22329:3)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom.development.js:21881:7)
at updateContainer (node_modules/react-dom/cjs/react-dom.development.js:25482:3)
at node_modules/react-dom/cjs/react-dom.development.js:26021:7
at unbatchedUpdates (node_modules/react-dom/cjs/react-dom.development.js:22431:12)
at legacyRenderSubtreeIntoContainer (node_modules/react-dom/cjs/react-dom.development.js:26020:5)
at Object.render (node_modules/react-dom/cjs/react-dom.development.js:26103:10)
at node_modules/@testing-library/react/dist/pure.js:101:25
at batchedUpdates$1 (node_modules/react-dom/cjs/react-dom.development.js:22380:12)
at act (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1042:14)
at render (node_modules/@testing-library/react/dist/pure.js:97:26)
at getComponent (test/components/views/rooms/EventTile-test.tsx:67:22)
at Object.getComponent (test/components/views/rooms/EventTile-test.tsx:339:35)
|
test/components/views/rooms/EventTile-test.tsx#L362
expect(received).toHaveLength(expected)
Expected length: 1
Received length: 0
Received object: []
at Object.toHaveLength (test/components/views/rooms/EventTile-test.tsx:362:78)
|
|
The logs for this run have expired and are no longer available.
Loading