diff --git a/pkg/signalmeow/groups.go b/pkg/signalmeow/groups.go index b91cdbee..cf66f129 100644 --- a/pkg/signalmeow/groups.go +++ b/pkg/signalmeow/groups.go @@ -362,26 +362,6 @@ func decryptGroupAvatar(encryptedAvatar []byte, groupMasterKey SerializedGroupMa return decryptedImage, nil } -func printGroupMember(member *GroupMember) { - if member == nil { - zlog.Debug().Msg("GroupMember is nil") - return - } - zlog.Debug().Msgf("UserID: %v", member.UserID) - zlog.Debug().Msgf("ProfileKey: %v", member.ProfileKey) - zlog.Debug().Msgf("Role: %v", member.Role) - zlog.Debug().Msgf("JoinedAtRevision: %v", member.JoinedAtRevision) -} -func printGroup(group *Group) { - zlog.Debug().Msgf("GroupIdentifier: %v", group.GroupIdentifier) - zlog.Debug().Msgf("Title: %v", group.Title) - zlog.Debug().Msgf("AvatarPath: %v", group.AvatarPath) - zlog.Debug().Msgf("Members len: %v", len(group.Members)) - for _, member := range group.Members { - printGroupMember(member) - } -} - func groupMetadataForDataMessage(group Group) *signalpb.GroupContextV2 { masterKey := masterKeyToBytes(group.groupMasterKey) masterKeyBytes := masterKey[:] @@ -460,7 +440,7 @@ func fetchAndDecryptGroupAvatarImage(d *Device, path string, masterKey Serialize Username: &username, Password: &password, } - zlog.Info().Msgf("Fetching group avatar from %v", path) + zlog.Info().Str("avatar_path", path).Msg("Fetching group avatar") resp, err := web.SendHTTPRequest("GET", path, opts) if err != nil { zlog.Err(err).Msg("error fetching group avatar")