Set AnsweredFlag on successful reply
This commit is contained in:
parent
a31d184ba5
commit
b1eb7ad18d
11 changed files with 179 additions and 0 deletions
widgets
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue