diff --git a/bindings/broadcast.go b/bindings/broadcast.go index 97def13f6a1f337a8de6518c50eb7f72d7699468..adcae331543392ab5d8023d3b9c1c026beacaba7 100644 --- a/bindings/broadcast.go +++ b/bindings/broadcast.go @@ -158,7 +158,7 @@ func (c *Channel) Broadcast(payload []byte) ([]byte, error) { return nil, err } return json.Marshal(BroadcastReport{ - RoundURL: getRoundURL(rid), + RoundURL: getRoundURL(rid.ID), RoundsList: makeRoundsList(rid.ID), EphID: eid, }) @@ -181,7 +181,7 @@ func (c *Channel) BroadcastAsymmetric(payload, pk []byte) ([]byte, error) { } return json.Marshal(BroadcastReport{ RoundsList: makeRoundsList(rid.ID), - RoundURL: getRoundURL(rid), + RoundURL: getRoundURL(rid.ID), EphID: eid, }) } diff --git a/bindings/group.go b/bindings/group.go index 7ecd29558fdb3aeeeb449b3635b43cee15516806..cd40636424304646f286bedd107b446ac343e16a 100644 --- a/bindings/group.go +++ b/bindings/group.go @@ -271,7 +271,7 @@ func (g *GroupChat) Send(groupId, message []byte, tag string) ([]byte, error) { // Construct send report sendReport := &GroupSendReport{ - RoundURL: getRoundURL(round), + RoundURL: getRoundURL(round.ID), RoundsList: makeRoundsList(round.ID), Timestamp: timestamp.UnixNano(), MessageID: msgID.Bytes(),