fix error when processing poll messages without messageSecret in channels (#3617)
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
This commit is contained in:
parent
fcb58d3070
commit
eaa8445ec0
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ 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;
|
||||||
this.messageSecret = Object.keys(data.messageSecret).map((key) => data.messageSecret[key]);
|
this.messageSecret = data.messageSecret ? Object.keys(data.messageSecret).map((key) => data.messageSecret[key]) : [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return super._patch(data);
|
return super._patch(data);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue