bug fixes to Find and Member List due to outdated function definitions

This commit is contained in:
2026-01-30 22:11:49 -07:00
parent a0d3f3715a
commit 4151e99528
5 changed files with 32 additions and 29 deletions
-9
View File
@@ -190,15 +190,6 @@ func (u *User) ContactInfo(ctx context.Context) (*ContactInfo, error) {
return AmGetContactInfo(ctx, u.ContactID)
}
// ContactInfo returns the contact info structure for the user, quietly.
func (u *User) ContactInfoQ(ctx context.Context) *ContactInfo {
if u.ContactID < 0 {
return nil
}
ci, _ := AmGetContactInfo(ctx, u.ContactID)
return ci
}
// SetContactID sets the contact ID of a user.
func (u *User) SetContactID(ctx context.Context, cid int32) error {
u.Mutex.Lock()