handle offline status correctly and other changes

This commit is contained in:
Lobo 2025-10-29 12:50:59 -03:00
parent dcc018efec
commit 6c66b32396
7 changed files with 93 additions and 81 deletions

View file

@ -118,6 +118,7 @@ func (ev MessageEvent) HandleIncoming(app *App) {
}
func (ev MessageEvent) HandleOutgoing(app *App) error {
app.incoming <- ev
num, err := app.Send(string(ev))
if err != nil {
return err
@ -178,9 +179,9 @@ func (ev ManualPollEvent) HandleOutgoing(app *App) error {
func (ev ManualPollEvent) HandleIncoming(app *App) {
if int(ev) == 0 {
app.AppendSystemMessage("poll: no new messages")
app.AppendSystemMessage("no new messages")
} else {
app.AppendSystemMessage("poll: retrieving %d messages", ev)
app.AppendSystemMessage("retrieving %d messages", ev)
}
}