From 110f1578644ace77a771d6554801bbfc73024bff Mon Sep 17 00:00:00 2001 From: Nagarei Date: Mon, 1 Jan 2024 09:56:51 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E8=87=AA=E5=88=86=E3=81=AE=E3=82=A2?= =?UTF-8?q?=E3=82=A4=E3=82=B3=E3=83=B3=E3=81=8C=E5=8F=96=E5=BE=97=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=81=AA=E3=81=84=E3=83=90=E3=82=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 通知からinline replyしたときに、自分のアイコンが取得できないバグ修正 --- src/sw/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sw/store.ts b/src/sw/store.ts index 5d0b12c42..12750e232 100644 --- a/src/sw/store.ts +++ b/src/sw/store.ts @@ -5,7 +5,7 @@ import { storeName, key } from '/@/composables/utils/useIndexedDbValue' export const getMeStore = async () => { try { - const openReq = indexedDB.open(`${dbPrefix}domain/me`) + const openReq = indexedDB.open(`${dbPrefix}store/domain/me`) const db = await promisifyRequest(openReq) const getReq: IDBRequest = db .transaction(storeName) From bbb0314ea5fe3fa2b7b1bc8473832f537176ee4d Mon Sep 17 00:00:00 2001 From: Nagarei Date: Mon, 1 Jan 2024 10:22:50 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BB=96=E4=BA=BA=E3=81=AE=E3=82=A2?= =?UTF-8?q?=E3=82=A4=E3=82=B3=E3=83=B3=E3=81=AE=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit getMeに失敗した場合に他人のアイコンが残ってしまうので、削除対応 --- src/sw/notification.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sw/notification.ts b/src/sw/notification.ts index 0f464d541..3b6dd3d22 100644 --- a/src/sw/notification.ts +++ b/src/sw/notification.ts @@ -88,6 +88,7 @@ export const setupNotification = async () => { // eslint-disable-next-line no-console console.warn('[sw] no store or me.detail found') data.body = `自分: ${event.reply}` + data.icon = `` } data.silent = true