From d21696d3af82ed575c3f5428e90c0d7257a1c07b Mon Sep 17 00:00:00 2001 From: ycc Date: Fri, 16 Dec 2022 22:15:16 +0100 Subject: [PATCH] pointer correction for protbuf compatibility --- client/peer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/peer.go b/client/peer.go index e97530a..069d652 100644 --- a/client/peer.go +++ b/client/peer.go @@ -59,13 +59,13 @@ func (pl *PeerList) GetFromName(name string) *Peer { return nil } -func (pl *PeerList) GetConversationRequests(name string) []meowlib.ToServerMessage_ConversationRequest { - var list []meowlib.ToServerMessage_ConversationRequest +func (pl *PeerList) GetConversationRequests(name string) []*meowlib.ToServerMessage_ConversationRequest { + var list []*meowlib.ToServerMessage_ConversationRequest for _, peer := range *pl { var cr meowlib.ToServerMessage_ConversationRequest cr.LookupKey = peer.MyLookupKp.Public // TODO Add key signature - list = append(list, cr) + list = append(list, &cr) } return list }