Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 030311fc rédigé par Will Hunt's avatar Will Hunt Validation de GitHub
Parcourir les fichiers

getEntries* should only return entries with remotes

parent 7f0f8ba6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -173,13 +173,15 @@ export class DbRoomStore { ...@@ -173,13 +173,15 @@ export class DbRoomStore {
remote = new RemoteStoreRoom(remoteId, row as any); remote = new RemoteStoreRoom(remoteId, row as any);
} }
} }
if (remote) {
// Only push rooms with a remote
res.push({ res.push({
id: (entry.id as string), id: (entry.id as string),
matrix: new MatrixStoreRoom(matrixId), matrix: new MatrixStoreRoom(matrixId),
remote, remote,
}); });
} }
}
if (res.length > 0) { if (res.length > 0) {
this.entriesMatrixIdCache.set(matrixId, {e: res, ts: Date.now()}); this.entriesMatrixIdCache.set(matrixId, {e: res, ts: Date.now()});
} }
...@@ -206,14 +208,15 @@ export class DbRoomStore { ...@@ -206,14 +208,15 @@ export class DbRoomStore {
remote = new RemoteStoreRoom(remoteId, row as any); remote = new RemoteStoreRoom(remoteId, row as any);
} }
} }
if (remote) {
// Only push rooms with a remote
res.push({ res.push({
id: (entry.id as string), id: (entry.id as string),
matrix: matrixId ? new MatrixStoreRoom(matrixId) : null, matrix: new MatrixStoreRoom(matrixId) : null,
// tslint:disable-next-line no-any
remote, remote,
}); });
} }
}
return res; return res;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter