This repository has been archived on 2021-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
cutthecord/resources/patches/hqavatars/78204.patch
2021-08-06 18:43:36 +01:00

20 lines
839 B
Diff

diff -crB fromsmali/com/discord/utilities/icon/IconUtils.smali to/smali/com/discord/utilities/icon/IconUtils.smali
*** fromsmali/com/discord/utilities/icon/IconUtils.smali 2021-05-31 14:05:54.000000000 +0300
--- to/smali/com/discord/utilities/icon/IconUtils.smali 2021-05-31 15:40:24.000000000 +0300
***************
*** 1739,1744 ****
--- 1739,1752 ----
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