connector: save channel access hashes in more places

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-08-29 11:57:21 -06:00
parent 86a2b3fa15
commit 088900aee1
4 changed files with 41 additions and 13 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ func (t *TelegramClient) SearchUsers(ctx context.Context, query string) (resp []
}
func (t *TelegramClient) GetContactList(ctx context.Context) (resp []*bridgev2.ResolveIdentifierResponse, err error) {
contacts, err := APICallWithUpdates(ctx, t, func() (*tg.ContactsContacts, error) {
contacts, err := APICallWithOnlyUserUpdates(ctx, t, func() (*tg.ContactsContacts, error) {
c, err := t.client.API().ContactsGetContacts(ctx, t.cachedContactsHash)
if err != nil {
return nil, err