fix: set selectedMessage & InputField.title as nil and "", respectively

This commit is contained in:
rigormorrtiss 2021-08-31 17:28:58 +04:00
parent cfff890a63
commit effe882849

View file

@ -210,11 +210,14 @@ func onMessageInputFieldInputCapture(e *tcell.EventKey) *tcell.EventKey {
}
if selectedMessage != nil {
messageInputField.SetTitle("")
go session.ChannelMessageSendReply(
selectedMessage.ChannelID,
t,
selectedMessage.Reference(),
)
selectedMessage = nil
} else {
go session.ChannelMessageSend(selectedChannel.ID, t)
}