mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +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
|
||||
const smallImage = assets.small_image;
|
||||
if (smallImage) {
|
||||
addImage(smallImage, assets.small_text ?? "Small Text");
|
||||
} else {
|
||||
// Prefer large image
|
||||
const largeImage = assets.large_image;
|
||||
if (largeImage) {
|
||||
addImage(largeImage, assets.large_text ?? "Large Text");
|
||||
} else {
|
||||
const smallImage = assets.small_image;
|
||||
if (smallImage) {
|
||||
addImage(smallImage, assets.small_text ?? "Small Text");
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
let application = ApplicationStore.getApplication(application_id);
|
||||
if (!application) {
|
||||
|
|
Loading…
Reference in a new issue