1
0
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:
Richard van der Hoff
2016-01-30 00:44:40 +00:00
parent 2af947fc1a
commit 0a7efe3e8b

View File

@@ -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;