cutthecord/patches/hqavatars/1105.patch
2020-04-20 17:39:02 +01:00

20 lines
824 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-04-19 17:24:48.439045754 +0100
--- to/smali/com/discord/utilities/icon/IconUtils.smali 2020-04-19 17:25:10.114889735 +0100
***************
*** 1395,1400 ****
--- 1395,1408 ----
invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(I)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 p3