From 18967425dfaaa1f8e72cb1ba4a9c47d1d432623a Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Sun, 26 May 2019 22:43:24 +0300 Subject: [PATCH] put nohiddenchannels in old-patches and add a readme --- old-patches/README.md | 7 ++++ old-patches/nohiddenchannels/903.patch | 49 ++++++++++++++++++++++++++ old-patches/nohiddenchannels/README.md | 11 ++++++ 3 files changed, 67 insertions(+) create mode 100644 old-patches/README.md create mode 100644 old-patches/nohiddenchannels/903.patch create mode 100644 old-patches/nohiddenchannels/README.md diff --git a/old-patches/README.md b/old-patches/README.md new file mode 100644 index 00000000..e9790219 --- /dev/null +++ b/old-patches/README.md @@ -0,0 +1,7 @@ +## CutTheCord: Old Patches + +This folder contains old patches. + +Here's why these patches are no longer maintained in this form: +- nohiddenchannels: Moved into slashcommands as a slash command +- notyping: Moved into slashcommands as a slash command diff --git a/old-patches/nohiddenchannels/903.patch b/old-patches/nohiddenchannels/903.patch new file mode 100644 index 00000000..7d78e92a --- /dev/null +++ b/old-patches/nohiddenchannels/903.patch @@ -0,0 +1,49 @@ +diff -crB com.discord-903-base/smali/com/discord/models/domain/ModelChannel.smali com.discord-903/smali/com/discord/models/domain/ModelChannel.smali +*** com.discord-903-base/smali/com/discord/models/domain/ModelChannel.smali 2019-05-24 23:40:49.520802264 +0300 +--- com.discord-903/smali/com/discord/models/domain/ModelChannel.smali 2019-05-25 02:48:42.334585852 +0300 +*************** +*** 431,437 **** + .end method + + .method private computeName()Ljava/lang/String; +! .locals 1 + + .line 272 + invoke-virtual {p0}, Lcom/discord/models/domain/ModelChannel;->isPrivate()Z +--- 431,437 ---- + .end method + + .method private computeName()Ljava/lang/String; +! .locals 2 + + .line 272 + invoke-virtual {p0}, Lcom/discord/models/domain/ModelChannel;->isPrivate()Z +*************** +*** 2083,2095 **** + .end annotation + + .line 246 +! iget-object v0, p0, Lcom/discord/models/domain/ModelChannel;->permissionOverwrites:Ljava/util/Map; + +! if-eqz v0, :cond_0 + +! return-object v0 + +! :cond_0 + sget-object v0, Lcom/discord/models/domain/ModelChannel;->EMPTY_PERMISSION_OVERWRITES:Ljava/util/Map; + + return-object v0 +--- 2083,2095 ---- + .end annotation + + .line 246 +! #iget-object v0, p0, Lcom/discord/models/domain/ModelChannel;->permissionOverwrites:Ljava/util/Map; + +! #if-eqz v0, :cond_0 + +! #return-object v0 + +! #:cond_0 + sget-object v0, Lcom/discord/models/domain/ModelChannel;->EMPTY_PERMISSION_OVERWRITES:Ljava/util/Map; + + return-object v0 diff --git a/old-patches/nohiddenchannels/README.md b/old-patches/nohiddenchannels/README.md new file mode 100644 index 00000000..7b2f6c48 --- /dev/null +++ b/old-patches/nohiddenchannels/README.md @@ -0,0 +1,11 @@ +## DisTok CutTheCord: No Hidden Channels Patch + +This patch shows all channels in the channel list, even those you lack permissions to view. + +#### Side effects / bugs +- May break channel edits/creates, not sure +- Currently no indicator is given if you can view a channel or not, I plan to prepend their name with smth later +- Currently you can't turn this on or off, I'll also change that eventually + +#### Available and tested on: +- 9.0.3