Skip to content

Commit

Permalink
fix: lint code concert
Browse files Browse the repository at this point in the history
  • Loading branch information
orkestral committed Sep 2, 2021
1 parent 9876b1b commit ab1e82d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/lib/wapi/store/get-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,21 @@ export async function getStore(modules) {
window.Store.SendTextMsgToChat(this, ...arguments);
};

if(!window.Store.Chat._find) {
window.Store.Chat._find = e => {
const target = window.Store.Chat.get(e);
return target ? Promise.resolve(target) : Promise.resolve({
if (!window.Store.Chat._find) {
window.Store.Chat._find = (e) => {
const target = window.Store.Chat.get(e);
return target
? Promise.resolve(target)
: Promise.resolve({
id: e
});
});
};
}
}

if (window.Store.MediaCollection)
window.Store.MediaCollection.prototype.processFiles =
window.Store.MediaCollection.prototype.processFiles ||
window.Store.MediaCollection.prototype.processAttachments;

return window.Store;
}

0 comments on commit ab1e82d

Please sign in to comment.