some adjustmentsfor server delivery and peer storage study
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2024-05-23 14:14:12 +02:00
parent d657e64ae4
commit 17c991f442
7 changed files with 346 additions and 139 deletions

View File

@ -1,9 +1,5 @@
package client
import (
"forge.redroom.link/yves/meowlib"
)
type PeerList []*Peer
func (pl *PeerList) GetFromPublicKey(publickey string) *Peer {
@ -43,7 +39,7 @@ func (pl *PeerList) GetFromName(name string) *Peer {
}
// ! Wrong implementation, does not discriminate on different servers
func (pl *PeerList) GetConversationRequests() []*meowlib.ConversationRequest {
/*func (pl *PeerList) GetConversationRequests() []*meowlib.ConversationRequest {
var list []*meowlib.ConversationRequest
for _, peer := range *pl {
var cr meowlib.ConversationRequest
@ -52,4 +48,4 @@ func (pl *PeerList) GetConversationRequests() []*meowlib.ConversationRequest {
list = append(list, &cr)
}
return list
}
}*/