Make messages unique and dedupe on reconnection

This commit is contained in:
Gabe Kangas
2020-06-02 17:59:40 -07:00
parent f83fccfa89
commit ae94eb1c5f
3 changed files with 27 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ type Message struct {
Author string `json:"author"`
Body string `json:"body"`
Image string `json:"image"`
Id string `json:"id"`
}
func (self *Message) String() string {