diff options
author | Simon Magnin-Feysot <simon.magninfeysot@iguanesolutions.com> | 2020-04-07 19:06:10 +0200 |
---|---|---|
committer | Simon Magnin-Feysot <simon.magninfeysot@iguanesolutions.com> | 2020-04-07 19:06:10 +0200 |
commit | 41e7b018c1f36395dccdff586f2668a249a5bcc0 (patch) | |
tree | e9f77301d50a0c4297a00d05e02246d07c49a6d5 /ui/commands.go | |
parent | 8b68140dc9e4bc6d51f49a4a38a09e1a0b0ffd67 (diff) |
command toggle downloads
Diffstat (limited to 'ui/commands.go')
-rw-r--r-- | ui/commands.go | 7 |
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 |