aboutsummaryrefslogtreecommitdiff
path: root/ui/commands.go
diff options
context:
space:
mode:
authorSimon Magnin-Feysot <simon.magninfeysot@iguanesolutions.com>2020-04-07 19:06:10 +0200
committerSimon Magnin-Feysot <simon.magninfeysot@iguanesolutions.com>2020-04-07 19:06:10 +0200
commit41e7b018c1f36395dccdff586f2668a249a5bcc0 (patch)
treee9f77301d50a0c4297a00d05e02246d07c49a6d5 /ui/commands.go
parent8b68140dc9e4bc6d51f49a4a38a09e1a0b0ffd67 (diff)
command toggle downloads
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