aboutsummaryrefslogtreecommitdiff
path: root/ui/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/commands.go')
-rw-r--r--ui/commands.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/commands.go b/ui/commands.go
index 747be1e..a57a78d 100644
--- a/ui/commands.go
+++ b/ui/commands.go
@@ -570,6 +570,13 @@ func cmdToggle(cmd *Command) {
} else {
cmd.Reply("Enabled Markdown input")
}
+ case "downloads":
+ cmd.Config.Preferences.DisableDownloads = !cmd.Config.Preferences.DisableDownloads
+ if cmd.Config.Preferences.DisableDownloads {
+ cmd.Reply("Disabled Downloads input")
+ } else {
+ cmd.Reply("Enabled Downloads input")
+ }
default:
cmd.Reply("Usage: /toggle <rooms/users/baremessages/images/typingnotif/emojis>")
return