parent
cdfa1760eb
commit
cde0034d93
1 changed files with 12 additions and 5 deletions
|
|
@ -37,6 +37,11 @@ exports.LoadCustomSerializers = () => {
|
|||
const chat = Store.Chat.get(chatId);
|
||||
return WWebJS.getChatModel(chat);
|
||||
}
|
||||
|
||||
window.WWebJS.getChats = () => {
|
||||
const chats = Store.Chat.models;
|
||||
return chats.map(chat => WWebJS.getChatModel(chat));
|
||||
}
|
||||
}
|
||||
|
||||
exports.MarkAllRead = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue