Skip to content
Snippets Groups Projects
Commit a9465e95 authored by Josh Brooks's avatar Josh Brooks
Browse files

Add RoundURL to bindings.Message

parent 12144ff4
No related branches found
No related tags found
1 merge request!510Release
...@@ -62,6 +62,7 @@ type Message struct { ...@@ -62,6 +62,7 @@ type Message struct {
Encrypted bool Encrypted bool
RoundId int RoundId int
RoundURL string
} }
// Hear is called to receive a message in the UI. // Hear is called to receive a message in the UI.
...@@ -76,6 +77,7 @@ func (l listener) Hear(item receive.Message) { ...@@ -76,6 +77,7 @@ func (l listener) Hear(item receive.Message) {
Timestamp: item.Timestamp.UnixNano(), Timestamp: item.Timestamp.UnixNano(),
Encrypted: item.Encrypted, Encrypted: item.Encrypted,
RoundId: int(item.Round.ID), RoundId: int(item.Round.ID),
RoundURL: getRoundURL(item.Round.ID),
} }
result, err := json.Marshal(&m) result, err := json.Marshal(&m)
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment