contacts rewire #9

Merged
dan merged 7 commits from contacts into trunk 2021-03-16 20:49:12 +00:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 51c7b56438 - Show all commits

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))