lastMessage in chat (#1606)
* lastMessage in chat * lastMessage info * Update src/util/Injected.js Co-authored-by: Rajeh Taher <rajeh@reforward.dev> * fix serialize msg * markup --------- Co-authored-by: tofers <tofers90> Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
parent
780005a81a
commit
812ff0ddfc
1 changed files with 17 additions and 1 deletions
|
|
@ -75,6 +75,12 @@ class Chat extends Base {
|
|||
*/
|
||||
this.muteExpiration = data.muteExpiration;
|
||||
|
||||
/**
|
||||
* Last message fo chat
|
||||
* @type {Message}
|
||||
*/
|
||||
this.lastMessage = data.lastMessage ? new Message(super.client, data.lastMessage) : undefined;
|
||||
|
||||
return super._patch(data);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue