Yet another sync commit

This commit is contained in:
Tulir Asokan
2017-11-16 22:05:08 +02:00
parent e95873b4ec
commit 8a1ed209f1
6 changed files with 91 additions and 50 deletions
+6 -2
View File
@@ -82,10 +82,14 @@ class MautrixTelegram {
return portal
}
const entries = await this.bridge.getRoomStore().select({
const query = {
type: "portal",
id: peer.id,
})
}
if (peer.type === "user") {
query.receiverID = peer.receiverID
}
const entries = await this.bridge.getRoomStore().select(query)
// Handle possible db query race conditions
portal = this.portalsByPeerID.get(peer.id)