From b1eb7ad18d2e0bbeecaf61a58825bbc794ceb40c Mon Sep 17 00:00:00 2001 From: Srivathsan Murali Date: Mon, 25 May 2020 16:59:48 +0200 Subject: Set AnsweredFlag on successful reply --- widgets/compose.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'widgets') diff --git a/widgets/compose.go b/widgets/compose.go index 42819411..01b8dd80 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -52,6 +52,7 @@ type Composer struct { layout HeaderLayout focusable []ui.MouseableDrawableInteractive focused int + sent bool onClose []func(ti *Composer) @@ -163,6 +164,14 @@ func buildComposeHeader(conf *config.AercConfig, cmpl *completer.Completer, return layout, editors, focusable } +func (c *Composer) SetSent() { + c.sent = true +} + +func (c *Composer) Sent() bool { + return c.sent +} + // Note: this does not reload the editor. You must call this before the first // Draw() call. func (c *Composer) SetContents(reader io.Reader) *Composer { -- cgit