~edwargix/tallyard

4a82af209fd906bb63ed82c4afd81094a76ca3f3 — David Florness 2 years ago c46167b
TUI: notify user when keys are being sent
1 files changed, 5 insertions(+), 0 deletions(-)

M ui/tui.go
M ui/tui.go => ui/tui.go +5 -0
@@ 335,6 335,11 @@ func ElectionWaitTUI(client *mautrix.Client, el *election.Election, eventStore *
				electionStarted = true
				el.RUnlock()
				if el.LocalVoter.KeysID == nil {
					app.QueueUpdateDraw(func() {
						frame.Clear()
						frame.AddText("Sending keys...", false, tview.AlignCenter, tcell.ColorWhite)
						update()
					})
					err = el.SendProvingKeys(client, eventStore)
					if err != nil {
						app.Stop()