From 004517ce9bbe060ca2195f7eb9edafb4066248f5 Mon Sep 17 00:00:00 2001 From: D3SOX Date: Fri, 16 Feb 2024 09:31:33 +0100 Subject: [PATCH] fix(memberListActivities): prefer large image I found the large image to be more applicable most of the time as the small image is often only used as an indicator. Maybe make this a setting? I also thought about maintaining a list of applications where to use which image but gave up on that idea. --- src/plugins/memberListActivities/index.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/plugins/memberListActivities/index.tsx b/src/plugins/memberListActivities/index.tsx index a87dd8931..2c7092838 100644 --- a/src/plugins/memberListActivities/index.tsx +++ b/src/plugins/memberListActivities/index.tsx @@ -140,17 +140,16 @@ export default definePlugin({ } }; - // Prefer small image - const smallImage = assets.small_image; - if (smallImage) { - addImage(smallImage, assets.small_text ?? "Small Text"); + // Prefer large image + const largeImage = assets.large_image; + if (largeImage) { + addImage(largeImage, assets.large_text ?? "Large Text"); } else { - const largeImage = assets.large_image; - if (largeImage) { - addImage(largeImage, assets.large_text ?? "Large Text"); + const smallImage = assets.small_image; + if (smallImage) { + addImage(smallImage, assets.small_text ?? "Small Text"); } } - } else { let application = ApplicationStore.getApplication(application_id); if (!application) {