/* what was SENT, recorded before the call and whether or not it lands — a desktop build and the mock both reject it, and neither is a reason to forget what the window looked like */ mediacard.updates++; mediacard.window = state.queue.length; mediacard.index = state.queueIndex ?? -1; mediacard.art = state.queue.filter((q) => !!q.artKey).length; mediacard.at = state.queueIndex == null ? "" : (state.queue[state.queueIndex].title || ""); await invoke("plugin:media-session|update", { state }).catch(() => {});