mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-20 06:30:35 +00:00
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.
This commit is contained in:
parent
96c1d9cb4b
commit
004517ce9b
1 changed files with 7 additions and 8 deletions
|
@ -140,17 +140,16 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Prefer small image
|
// Prefer large image
|
||||||
const smallImage = assets.small_image;
|
const largeImage = assets.large_image;
|
||||||
if (smallImage) {
|
if (largeImage) {
|
||||||
addImage(smallImage, assets.small_text ?? "Small Text");
|
addImage(largeImage, assets.large_text ?? "Large Text");
|
||||||
} else {
|
} else {
|
||||||
const largeImage = assets.large_image;
|
const smallImage = assets.small_image;
|
||||||
if (largeImage) {
|
if (smallImage) {
|
||||||
addImage(largeImage, assets.large_text ?? "Large Text");
|
addImage(smallImage, assets.small_text ?? "Small Text");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
let application = ApplicationStore.getApplication(application_id);
|
let application = ApplicationStore.getApplication(application_id);
|
||||||
if (!application) {
|
if (!application) {
|
||||||
|
|
Loading…
Reference in a new issue