OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-core / lib / core / sync / rooms.js

1 lines · javascript ref:
const{roomsStats:t}=require("../contract/stats/local");module.exports=async function(o,a){const s=await o.get("@local/room-preferences",a);a.preferences=s?s.status:null;const e=await o.get("@local/rooms",a);await o.insert("@local/rooms",a),await t(o,a,e)};