diff options
Diffstat (limited to 'ui/commands.go')
-rw-r--r-- | ui/commands.go | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/ui/commands.go b/ui/commands.go index c7f0301..9ef0577 100644 --- a/ui/commands.go +++ b/ui/commands.go @@ -147,19 +147,14 @@ const ( ) func cmdReply(cmd *Command) { - cmd.Room.selecting = true - cmd.Room.selectReason = SelectReply - cmd.Room.selectContent = strings.Join(cmd.Args, " ") - cmd.Room.OnSelect(cmd.Room.MessageView().selected) + cmd.Room.StartSelecting(SelectReply, strings.Join(cmd.Args, " ")) } func cmdRedact(cmd *Command) { cmd.Reply("Not yet implemented 3:") // This needs to be implemented in RoomView's OnSelect method - //cmd.Room.selecting = true - //cmd.Room.selectReason = SelectRedact - //cmd.Room.OnSelect(cmd.Room.MessageView().selected) + //cmd.Room.StartSelecting(SelectRedact, "") } func cmdReact(cmd *Command) { @@ -168,10 +163,7 @@ func cmdReact(cmd *Command) { return } - cmd.Room.selecting = true - cmd.Room.selectReason = SelectReact - cmd.Room.selectContent = strings.Join(cmd.Args, " ") - cmd.Room.OnSelect(cmd.Room.MessageView().selected) + cmd.Room.StartSelecting(SelectReact, strings.Join(cmd.Args, " ")) } func cmdTags(cmd *Command) { |