Fix join timing issue
This commit is contained in:
parent
0f7d9893c4
commit
0130858908
8 changed files with 1108 additions and 1081 deletions
|
|
@ -312,11 +312,14 @@ export default {
|
|||
}
|
||||
}
|
||||
if (response.next_batch) {
|
||||
return tempMatrixClient._http.request(undefined, "GET", "/publicRooms", {limit:1000, next_batch:response.next_batch})
|
||||
return tempMatrixClient._http.request(undefined, "GET", "/publicRooms", {limit:1000, since:response.next_batch})
|
||||
//return tempMatrixClient.publicRooms({limit:1,next_batch:response.next_batch})
|
||||
.then(response => {
|
||||
return _findOrGetMore(response);
|
||||
})
|
||||
})
|
||||
.catch(err => {
|
||||
return Promise.reject("Failed to find room: " + err);
|
||||
});
|
||||
} else {
|
||||
return Promise.reject("No more data");
|
||||
}
|
||||
|
|
@ -326,6 +329,9 @@ export default {
|
|||
//return tempMatrixClient.publicRooms({limit:1})
|
||||
.then(response => {
|
||||
return findOrGetMore(response);
|
||||
})
|
||||
.catch(err => {
|
||||
return Promise.reject("Failed to find room: " + err);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue