Homework 1 displaying private messages in the GUI

Homework 1 displaying private messages in the GUI

by Pasindu Nivanthaka Tennage -
Number of replies: 0

As some of you have questioned about how to display private messages in the destination GUI, we mare making this simple clarification.

In the destination of the private message, do the following and pass the message to the controller.

rumourMessage := RumorMessage{

Origin: priv.Origin,

ID:     priv.ID,

Text:   priv.Text,

}


if g.callback != nil {

g.callback(g.identifier, GossipPacket{Rumor: &rumourMessage})

}