M election/msg.go => election/msg.go +0 -2
@@ 136,7 136,6 @@ func getElection(client *mautrix.Client, roomID id.RoomID, createEventId id.Even
if exists {
return el
}
- // TODO: this endpoint will be deprecated
createEvent, err := client.GetEvent(roomID, createEventId)
if err != nil {
log.Warnf("couldn't retrieve election create event: %s", err)
@@ 165,7 164,6 @@ func getVoter(client *mautrix.Client, roomID id.RoomID, joinEventId id.EventID,
if exists {
return voter
}
- // TODO: this endpoint will be deprecated
joinEvent, err := client.GetEvent(roomID, joinEventId)
if err != nil {
log.Warnf("couldn't retrieve join event: %s", err)
M election/voter.go => election/voter.go +0 -2
@@ 54,7 54,6 @@ func CreateElection(client *mautrix.Client, candidates []Candidate, title string
return nil, err
}
- // TODO: this will be deprecated
createEvt, err := client.GetEvent(roomID, resp.EventID)
if err != nil {
return nil, err
@@ 95,7 94,6 @@ func (el *Election) JoinElection(client *mautrix.Client) error {
return err
}
- // TODO: this will be deprecated
joinEvt, err := client.GetEvent(el.RoomID, resp.EventID)
if err != nil {
return err