diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-04-08 14:53:54 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-04-08 14:53:54 +0300 |
commit | 80564b2887085a088a4f753042dbe345092e45a1 (patch) | |
tree | e9f77301d50a0c4297a00d05e02246d07c49a6d5 /ui/commands.go | |
parent | 3ddf85763d6dfe8c5ddecf5022f571e93b9a2a63 (diff) | |
parent | 41e7b018c1f36395dccdff586f2668a249a5bcc0 (diff) |
Merge remote-tracking branch 'pike4000/video'
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 |