dont list servers as contacts

This commit is contained in:
erinn 2021-03-15 15:24:49 -07:00
parent c2d5217c7a
commit 51c7b56438
1 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,10 @@ func (eh *EventHandler) handleAppBusEvent(e *event.Event) string {
var contacts []Contact
for _, contact := range profile.GetContacts() {
if profile.GetContact(contact).IsServer() {
continue
}
cpicVal, ok := profile.GetContactAttribute(contact, attr.GetPeerScope(constants.Picture))
if !ok {
cpicVal = ImageToString(NewImage(RandomProfileImage(contact), TypeImageDistro))