From 4173371c11b75032fa21b9c65cf13fc42da4fd22 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 14 Jun 2024 23:24:58 -0600 Subject: [PATCH] utility.presence: fix missing party on listening --- src/modules/utility.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/utility.js b/src/modules/utility.js index 7422881..98862c6 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -1707,8 +1707,13 @@ presence.callback = async function (msg, line) { descLines.push(`**${details}**`); } if (activity.state) descLines.push(activity.state); - if (activity.assets?.large_text) - descLines.push(activity.assets.large_text); + if (activity.assets?.large_text) { + let albumLine = activity.assets.large_text; + if (activity.party?.size) { + albumLine += ` (${activity.party.size[0]} of ${activity.party.size[1]})`; + } + descLines.push(albumLine); + } } else { if (activity.details) descLines.push(activity.details); if (activity.state) {