Fix: delete lines that remove data from this._data (#2958)
This commit is contained in:
parent
b99d28c5c6
commit
8c810a8462
1 changed files with 0 additions and 6 deletions
|
|
@ -295,12 +295,6 @@ class Message extends Base {
|
||||||
this.allowMultipleAnswers = Boolean(!data.pollSelectableOptionsCount);
|
this.allowMultipleAnswers = Boolean(!data.pollSelectableOptionsCount);
|
||||||
this.pollInvalidated = data.pollInvalidated;
|
this.pollInvalidated = data.pollInvalidated;
|
||||||
this.isSentCagPollCreation = data.isSentCagPollCreation;
|
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);
|
return super._patch(data);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue