feat: indicate if chat is currently muted
This commit is contained in:
parent
cbf8fb7cf5
commit
ee21e14547
2 changed files with 9 additions and 0 deletions
|
|
@ -57,6 +57,12 @@ class Chat extends Base {
|
|||
*/
|
||||
this.archived = data.archive;
|
||||
|
||||
/**
|
||||
* Indicates if the chat is muted or not
|
||||
* @type {number}
|
||||
*/
|
||||
this.isMuted = data.isMuted;
|
||||
|
||||
/**
|
||||
* Unix timestamp for when the mute expires
|
||||
* @type {number}
|
||||
|
|
|
|||
|
|
@ -170,6 +170,7 @@ exports.LoadUtils = () => {
|
|||
let res = chat.serialize();
|
||||
res.isGroup = chat.isGroup;
|
||||
res.formattedTitle = chat.formattedTitle;
|
||||
res.isMuted = chat.mute && chat.mute.isMuted;
|
||||
|
||||
if (chat.groupMetadata) {
|
||||
await window.Store.GroupMetadata.update(chat.id._serialized);
|
||||
|
|
|
|||
Loading…
Reference in a new issue