Announcements

Homework 1 displaying private messages in the GUI

 
Picture of Pasindu Nivanthaka Tennage
Homework 1 displaying private messages in the GUI
by Pasindu Nivanthaka Tennage - Wednesday, 28 October 2020, 14:00
 

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})

}