| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-06-24 03:00:39 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-06-24 03:00:39 UTC |
| parent | 1158c1fc87948b50d74ae33243fde95d90a0e3a2 |
| borogove/persistence/IDB.js | +2 | -2 |
diff --git a/borogove/persistence/IDB.js b/borogove/persistence/IDB.js index 6ef27f7..d56f464 100644 --- a/borogove/persistence/IDB.js +++ b/borogove/persistence/IDB.js @@ -761,7 +761,7 @@ export default async (dbname, media, tokenize, stemmer) => { })); }, - getMessage: async function(account, chatId, serverId, localId, store) { + getMessage: async function(account, chatId, serverId, localId, store = null) { if (!serverId && !localId) throw "Can't getMessage by no id"; if (!store) { @@ -788,7 +788,7 @@ export default async (dbname, media, tokenize, stemmer) => { return await hydrateMessage(message, store); }, - async storeReaction(account, update, tx) { + async storeReaction(account, update, tx = null) { if (!tx) { tx = db.transaction(["messages", "reactions"], "readwrite"); }