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/patches/hqavatars/1085.patch

24 lines
967 B
Diff
Raw Normal View History

2020-03-30 17:39:19 +00:00
Only in com.discord-1078: build
Only in com.discord-1078: dist
diff -crB com.discord-1078-base/smali/com/discord/utilities/icon/IconUtils.smali com.discord-1078/smali/com/discord/utilities/icon/IconUtils.smali
*** com.discord-1078-base/smali/com/discord/utilities/icon/IconUtils.smali 2020-03-26 10:35:55.202236972 +0300
--- com.discord-1078/smali/com/discord/utilities/icon/IconUtils.smali 2020-03-27 12:03:29.601718099 +0300
***************
*** 1355,1360 ****
--- 1355,1368 ----
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