Fix: delete lines that remove data from this._data (#2958)

This commit is contained in:
Shir Serlui 2024-04-29 10:59:20 +03:00 • committed by GitHub
commit 8c810a8462
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -295,12 +295,6 @@ class Message extends Base {
this.allowMultipleAnswers = Boolean(!data.pollSelectableOptionsCount);
this.pollInvalidated = data.pollInvalidated;
this.isSentCagPollCreation = data.isSentCagPollCreation;
delete this._data.pollName;
delete this._data.pollOptions;
delete this._data.pollSelectableOptionsCount;
delete this._data.pollInvalidated;
delete this._data.isSentCagPollCreation;
}
return super._patch(data);