You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Fix undefined variable accesses
fix a merge error in the last commit
This commit is contained in:
@@ -428,7 +428,7 @@ SyncApi.prototype._sync = function(syncOptions, attempt) {
|
||||
// - The isBrandNewRoom boilerplate is boilerplatey.
|
||||
|
||||
try {
|
||||
self._processSyncResponse(data);
|
||||
self._processSyncResponse(syncToken, data);
|
||||
}
|
||||
catch (e) {
|
||||
console.error("Caught /sync error:");
|
||||
@@ -481,9 +481,11 @@ SyncApi.prototype._sync = function(syncOptions, attempt) {
|
||||
* Process data returned from a sync response and propagate it
|
||||
* into the model objects
|
||||
*
|
||||
* @param {string} syncToken the old next_batch token sent to this
|
||||
* sync request.
|
||||
* @param {Object} data The response from /sync
|
||||
*/
|
||||
SyncApi.prototype._processSyncResponse = function(data) {
|
||||
SyncApi.prototype._processSyncResponse = function(syncToken, data) {
|
||||
var client = this.client;
|
||||
var self = this;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user