pointer correction for protbuf compatibility
This commit is contained in:
parent
7b1ec49ad5
commit
d21696d3af
@ -59,13 +59,13 @@ func (pl *PeerList) GetFromName(name string) *Peer {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pl *PeerList) GetConversationRequests(name string) []meowlib.ToServerMessage_ConversationRequest {
|
func (pl *PeerList) GetConversationRequests(name string) []*meowlib.ToServerMessage_ConversationRequest {
|
||||||
var list []meowlib.ToServerMessage_ConversationRequest
|
var list []*meowlib.ToServerMessage_ConversationRequest
|
||||||
for _, peer := range *pl {
|
for _, peer := range *pl {
|
||||||
var cr meowlib.ToServerMessage_ConversationRequest
|
var cr meowlib.ToServerMessage_ConversationRequest
|
||||||
cr.LookupKey = peer.MyLookupKp.Public
|
cr.LookupKey = peer.MyLookupKp.Public
|
||||||
// TODO Add key signature
|
// TODO Add key signature
|
||||||
list = append(list, cr)
|
list = append(list, &cr)
|
||||||
}
|
}
|
||||||
return list
|
return list
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user