aboutsummaryrefslogtreecommitdiff
path: root/ui/commands.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-04-08 14:53:54 +0300
committerTulir Asokan <tulir@maunium.net>2020-04-08 14:53:54 +0300
commit80564b2887085a088a4f753042dbe345092e45a1 (patch)
treee9f77301d50a0c4297a00d05e02246d07c49a6d5 /ui/commands.go
parent3ddf85763d6dfe8c5ddecf5022f571e93b9a2a63 (diff)
parent41e7b018c1f36395dccdff586f2668a249a5bcc0 (diff)
Merge remote-tracking branch 'pike4000/video'
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