fix: sendMessage with quoted message id (#3260)
* fix: sendMessage with quoted message id Now using `window.Store.Msg.getMessagesById` instead of `window.Store.Msg.get` * refactor: apply message retrievement to all appropriate places * chore: ignore ide's dirs * fix: set proper variable --------- Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com> Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
parent
22af9df3d0
commit
951ff7bfca
1 changed files with 46 additions and 37 deletions
|
|
@ -720,8 +720,8 @@ class Client extends EventEmitter {
|
|||
}
|
||||
});
|
||||
window.Store.Chat.on('change:unreadCount', (chat) => {window.onChatUnreadCountEvent(chat);});
|
||||
window.Store.PollVote.on('add', (vote) => {
|
||||
const pollVoteModel = window.WWebJS.getPollVoteModel(vote);
|
||||
window.Store.PollVote.on('add', async (vote) => {
|
||||
const pollVoteModel = await window.WWebJS.getPollVoteModel(vote);
|
||||
pollVoteModel && window.onPollVoteEvent(pollVoteModel);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue