Fix voters list in election TUI
1 files changed, 2 insertions(+), 2 deletions(-) M ui/tui.go
M ui/tui.go => ui/tui.go +2 -2
@@ 247,8 247,8 @@ func ElectionTUI(client *mautrix.Client, el *election.Election) { el.RLock() // TODO: handle duplicate joins from one UserID voters := make([]string, 0, len(el.Joins)) for voterUserID := range el.Joins { voters = append(voters, voterUserID.String()) for _, voter := range el.Joins { voters = append(voters, voter.UserID.String()) } el.RUnlock() sort.Strings(voters)