for getConnectionsSortedByLastSeen, ignore accepted on servers
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
f630dedab6
commit
6eef88fc2d
|
@ -1055,17 +1055,16 @@ func (cp *cwtchPeer) getConnectionsSortedByLastSeen(doPeers, doServers bool) []*
|
|||
byRecent := []*LastSeenConversation{}
|
||||
|
||||
for _, conversation := range conversations {
|
||||
if conversation.Accepted && !conversation.IsGroup() {
|
||||
if !conversation.IsGroup() {
|
||||
if conversation.IsServer() {
|
||||
if !doServers {
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
if !doPeers {
|
||||
if !doPeers || !conversation.Accepted {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
byRecent = append(byRecent, &LastSeenConversation{conversation, cp.GetConversationLastSeenTime(conversation.ID)})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue