Merge branch 'master' of https://github.com/gabek/owncast
This commit is contained in:
@@ -8,10 +8,6 @@ type ChatMessage struct {
|
|||||||
MessageType string `json:"type"`
|
MessageType string `json:"type"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *ChatMessage) AsJson() string {
|
|
||||||
return s.Author + " says " + s.Body
|
|
||||||
}
|
|
||||||
|
|
||||||
func (s *ChatMessage) String() string {
|
func (s *ChatMessage) String() string {
|
||||||
return s.Author + " says " + s.Body
|
return s.Author + " says " + s.Body
|
||||||
}
|
}
|
||||||
@@ -19,7 +15,3 @@ func (s *ChatMessage) String() string {
|
|||||||
type PingMessage struct {
|
type PingMessage struct {
|
||||||
MessageType string `json:"type"`
|
MessageType string `json:"type"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *PingMessage) AsJson() string {
|
|
||||||
return "{type: \"PING\"}"
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -22,15 +22,6 @@ class Message {
|
|||||||
userColor() {
|
userColor() {
|
||||||
return messageBubbleColorForString(this.author);
|
return messageBubbleColorForString(this.author);
|
||||||
}
|
}
|
||||||
|
|
||||||
toModel() {
|
|
||||||
return {
|
|
||||||
author: this.author(),
|
|
||||||
body: this.body(),
|
|
||||||
image: this.image(),
|
|
||||||
id: this.id
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user