v4.0.0: Uncaught (in promise) Error: Cannot call hasPendingEvent with pendingEventOrdering == chronological
Due to this issue https://github.com/matrix-org/matrix-js-sdk/issues/1216 I am not able to update the SDK since v4.0.0. So this issue occurs in v4.0.0, maybe also in later versions (> v4.0.0).
The following exception is thrown
Uncaught (in promise) Error: Cannot call hasPendingEvent with pendingEventOrdering == chronological
while sending a read receipt (MatrixClient.prototype.sendReadReceipt) with opts.hidden = false.
Stack trace:
browser-matrix.min.js?v=ff0f3dfc38cda0ac9b88e0bc87ae8e67:14 Uncaught (in promise) Error: Cannot call hasPendingEvent with pendingEventOrdering == chronological
at _.hasPendingEvent (browser-matrix.min.js?v=ff0f3dfc38cda0ac9b88e0bc87ae8e67:14)
at M.<anonymous> (browser-matrix.min.js?v=ff0f3dfc38cda0ac9b88e0bc87ae8e67:14)
at c (browser-matrix.min.js?v=ff0f3dfc38cda0ac9b88e0bc87ae8e67:14)
at Generator._invoke (browser-matrix.min.js?v=ff0f3dfc38cda0ac9b88e0bc87ae8e67:14)
at Generator.forEach.e.<computed> [as next] (browser-matrix.min.js?v=ff0f3dfc38cda0ac9b88e0bc87ae8e67:14)
at c (browser-matrix.min.js?v=ff0f3dfc38cda0ac9b88e0bc87ae8e67:14)
at t (browser-matrix.min.js?v=ff0f3dfc38cda0ac9b88e0bc87ae8e67:14)
at browser-matrix.min.js?v=ff0f3dfc38cda0ac9b88e0bc87ae8e67:14
at new Promise (<anonymous>)
at o (browser-matrix.min.js?v=ff0f3dfc38cda0ac9b88e0bc87ae8e67:14)
@menturion or anyone figure out how to implement this? currently running into the same issue.
@menturion I just realized I was trying to pass that in for opts to createClient instead of startClient. wow feel so dumb. it now works now! Thanks for the clarification!