Open blbraga opened 4 years ago
Hi! When i enter on a new group, and try to send message, i use Store.Chat.find(id), is returning a error:
ModelCreateError: Unknown
I tried to use this on async function which i saw on another issue:
const chatId = new Store.UserConstructor(jid_grupo, {intentionallyUsePrivateConstructor: true}); let chat = await Store.Chat.find(chatId).then((r)=>{return r;}); chat.sendMessage(message);
Returning the same error, i can't send a message to my new group. I tried to create a new model, to add to Store.Chat.models, but not working too.
same problem here
Hi! When i enter on a new group, and try to send message, i use Store.Chat.find(id), is returning a error:
ModelCreateError: Unknown
I tried to use this on async function which i saw on another issue:
const chatId = new Store.UserConstructor(jid_grupo, {intentionallyUsePrivateConstructor: true}); let chat = await Store.Chat.find(chatId).then((r)=>{return r;}); chat.sendMessage(message);
Returning the same error, i can't send a message to my new group. I tried to create a new model, to add to Store.Chat.models, but not working too.