cutthecord/resources/old-patches/hqavatars/79107.patch
46620 0f8f3bcbb3 Full clienthax setup (#2)
- [x] Folder structure
- [x] Script updates
- [x] XML patches
- [x] Move all patches to this repo
- [x] Make sure jenkins is ready for new build system

Reviewed-on: https://booba.tech/CutTheCord/cutthecord/pulls/2
Co-authored-by: 46620 <46620osu@gmail.com>
Co-committed-by: 46620 <46620osu@gmail.com>
2021-08-21 21:04:13 +00:00

24 lines
986 B
Diff

*** com.discord/smali/com/discord/utilities/icon/IconUtils.smali 2021-06-01 17:16:49.177261704 +0000
--- com.discord-mod/smali/com/discord/utilities/icon/IconUtils.smali 2021-06-01 22:24:40.410417721 +0000
The patch below was dropped on version 79107 due to it just crashing on startup, if you are able to fix this please submit a PR
79107: Either temp removed or perma removed as it does not work yet is being inserted at the correct spot
***************
*** 1710,1715 ****
--- 1710,1723 ----
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
+ # Set avatar image size to 256
+
+ const-string v0, "?size=256"
+
+ invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
+
+ const-string v0, "https://cdn.discordapp.com/avatars/"
+
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0