aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-06-08 00:19:50 +0300
committerTulir Asokan <tulir@maunium.net>2020-06-08 00:19:50 +0300
commit0688ed1dba224f7e928044a8aa49b742a77b8574 (patch)
treefdd56b46e7903254e8ca9d6fdd8624fd28937128
parent37fd0be64ad53f531ed71f3fa71379eb818a9162 (diff)
Fix /reject command output
-rw-r--r--ui/commands.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/commands.go b/ui/commands.go
index fc86e85..71cee21 100644
--- a/ui/commands.go
+++ b/ui/commands.go
@@ -142,8 +142,9 @@ func cmdReject(cmd *Command) {
if err != nil {
cmd.Reply("Failed to reject invite: %v", err)
} else {
- cmd.Reply("Successfully accepted invite")
+ cmd.Reply("Successfully rejected invite")
}
+ cmd.MainView.RemoveRoom(room)
}
func cmdID(cmd *Command) {