improve feed performance

This commit is contained in:
pa
2026-01-21 16:43:16 +09:00
parent 0a1b0162c6
commit e161994783
4 changed files with 14 additions and 16 deletions

View File

@@ -241,7 +241,8 @@ export const useSharedFeedStore = defineStore('SharedFeed', () => {
rebuildOnPlayerJoining(); // also sends updated feed
}
async function addEntry(ctx) {
async function addEntry(feed) {
const ctx = structuredClone(feed);
const userId = ctx.userId || ctx.senderUserId;
const wristFilter = notificationsSettingsStore.sharedFeedFilters.wrist;
if (userId === userStore.currentUser.id) {