cutthecordS/patches/hqavatars/1365.patch
2021-01-05 16:23:38 -05:00

20 lines
841 B
Diff

diff -crB from/smali/com/discord/utilities/icon/IconUtils.smali to/smali/com/discord/utilities/icon/IconUtils.smali
*** from/smali/com/discord/utilities/icon/IconUtils.smali 2020-12-10 17:59:08.313854767 +0000
--- to/smali/com/discord/utilities/icon/IconUtils.smali 2020-12-10 17:59:55.062392568 +0000
***************
*** 1478,1483 ****
--- 1478,1491 ----
invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
+ # Set avatar image size to 256
+
+ const-string v0, "?size=256"
+
+ invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
+
+ const-string v0, "https://cdn.discordapp.com/avatars/"
+
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0