@@ 128,7 128,8 @@ func RoomTUI(client *mautrix.Client, roomID id.RoomID, elections *election.Elect
if err != nil {
panic(err)
}
- el, ok := elections.GetOk(eventID)
+ var ok bool
+ el, ok = elections.GetOk(eventID)
for !ok {
time.Sleep(10 * time.Millisecond)
el, ok = elections.GetOk(eventID)