startchat: don't allow spamming get contact list request

This commit is contained in:
Tulir Asokan
2025-12-12 14:30:06 +02:00
parent ef65f9f1ea
commit ae05331420
2 changed files with 28 additions and 16 deletions
+2
View File
@@ -102,6 +102,8 @@ type TelegramClient struct {
cachedContacts *tg.ContactsContacts
cachedContactsHash int64
contactsLock sync.Mutex
lastContactReq time.Time
takeoutLock sync.Mutex
takeoutAccepted *exsync.Event