OverviewFilesCommitsIssuesDocsReleasesPeers

keet-cli / deobfuscated / lib / migrations / 4 / post.js

23 lines · javascript ref:
async function recoverMissingRooms(_0x3a3fd8){
  _0x315f15={
    _0x3a9290:0x372},_0x29dbc1={
    _0x371911:0xd7},_0x121d45=[];
  for await(const _0x31dd1d of _0x3a3fd8.privateProfile.db.find("@keet-private-id/rooms")){
    const _0x1051f3=await _0x3a3fd8.local.get("@local/rooms",{'roomKey':_0x31dd1d.roomKey});
    if(_0x1051f3)continue;
    _0x121d45.push(_0x31dd1d);
  }
for(const _0x1703ef of _0x121d45){
  const _0x5edd8c=_0x3a3fd8.tasks.joinRoomKeys(_0x1703ef.roomKey,{'keys':_0x1703ef});
  _0x5edd8c.runBackground();
}
}
module.exports=async function migrate(_0x267096){
  _0x4d2d54={
    _0xcb2a85:0x1b0,_0x3b5bb1:0x63},_0x2a2fae={
    _0xf67117:0xff,_0xe12c93:0x6d,_0x2f80d8:0x1af}
  ;
  recoverMissingRooms(_0x267096).catch(_0x267096.onerror);
}
;