startchat: fix getting cached contact list

This commit is contained in:
Tulir Asokan
2025-12-12 14:39:13 +02:00
parent ae05331420
commit c1d92ce051

View File

@@ -229,6 +229,8 @@ func (t *TelegramClient) GetContactList(ctx context.Context) (resp []*bridgev2.R
return nil, err
}
t.lastContactReq = time.Now()
} else {
contacts = t.cachedContacts
}
users := map[int64]tg.UserClass{}
for _, user := range contacts.GetUsers() {