fix: send messages properly when disappearing mode is on (#1174)

* fix: send messages properly when dissappearing mode is on

* add `isEphemeral` to message model
This commit is contained in:
Pedro S. Lopez
2022-02-06 21:48:55 -04:00
committed by GitHub
parent 7e36cceaf0
commit 70ca073f38
3 changed files with 16 additions and 0 deletions

View File

@@ -185,6 +185,12 @@ class Message extends Base {
*/
this.isGif = Boolean(data.isGif);
/**
* Indicates if the message will disappear after it expires
* @type {boolean}
*/
this.isEphemeral = data.isEphemeral;
/** Title */
if (data.title) {
this.title = data.title;