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,12 +173,14 @@ export class DbRoomStore {
remote = new RemoteStoreRoom(remoteId, row as any);
}
}
res.push({
id: (entry.id as string),
matrix: new MatrixStoreRoom(matrixId),
remote,
});
if (remote) {
// Only push rooms with a remote
res.push({
id: (entry.id as string),
matrix: new MatrixStoreRoom(matrixId),
remote,
});
}
}
if (res.length > 0) {
this.entriesMatrixIdCache.set(matrixId, {e: res, ts: Date.now()});
......@@ -206,13 +208,14 @@ export class DbRoomStore {
remote = new RemoteStoreRoom(remoteId, row as any);
}
}
res.push({
id: (entry.id as string),
matrix: matrixId ? new MatrixStoreRoom(matrixId) : null,
// tslint:disable-next-line no-any
remote,
});
if (remote) {
// Only push rooms with a remote
res.push({
id: (entry.id as string),
matrix: new MatrixStoreRoom(matrixId) : null,
remote,
});
}
}
return res;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter