Remove restriction on number of other_user_ids in registerDevice.
GitOrigin-RevId: b9a2a51c48d03d1b8cbfa26cf8c4ba0da5cf0e15
This commit is contained in:
parent
84e6e73abb
commit
58aafd9b39
@ -3562,7 +3562,7 @@ setCustomLanguagePackString language_pack_id:string new_string:languagePackStrin
|
||||
deleteLanguagePack language_pack_id:string = Ok;
|
||||
|
||||
|
||||
//@description Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription @device_token Device token @other_user_ids List of at most 100 user identifiers of other users currently using the client
|
||||
//@description Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription @device_token Device token @other_user_ids List of user identifiers of other users currently using the client
|
||||
registerDevice device_token:DeviceToken other_user_ids:vector<int32> = PushReceiverId;
|
||||
|
||||
//@description Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization
|
||||
|
@ -228,9 +228,6 @@ void DeviceTokenManager::register_device(tl_object_ptr<td_api::DeviceToken> devi
|
||||
return promise.set_error(Status::Error(400, "Invalid user_id among other user_ids"));
|
||||
}
|
||||
}
|
||||
if (other_user_ids.size() > MAX_OTHER_USER_IDS) {
|
||||
return promise.set_error(Status::Error(400, "Too much other user_ids"));
|
||||
}
|
||||
|
||||
auto &info = tokens_[token_type];
|
||||
info.net_query_id = 0;
|
||||
|
@ -32,8 +32,6 @@ class DeviceTokenManager : public NetQueryCallback {
|
||||
vector<std::pair<int64, Slice>> get_encryption_keys() const;
|
||||
|
||||
private:
|
||||
static constexpr size_t MAX_OTHER_USER_IDS = 100;
|
||||
|
||||
ActorShared<> parent_;
|
||||
enum TokenType : int32 {
|
||||
APNS = 1,
|
||||
|
Loading…
Reference in New Issue
Block a user